i updated to the last flowrish code and have some problem:
if ($find_agency->getAgencyName() === fRequest::get("user_name") && $find_agency->getPassword() === fRequest::get("password"))
{
fAuthorization::setUserAuthLevel($find_agency->getAgencyType());
fAuthorization::setUserToken($find_agency->getAgencyId());
fAuthorization::setUserACLs(array(
'*' => array(
'*'
)
));
fURL::redirect(fAuthorization::getRequestedURL(TRUE, 'http://localhost/turism/admin/'));
}
else
{
throw new fValidationException("Username or/and password don't match.");
}
so :
fCore::expose(fAuthorization::getUserACLs());
echo fAuthorization::getUserAuthLevel();
if (fAuthorization::checkACL('users', 'edit')) {
echo 'ai voie';
} else { echo 'nu ai voie'; }
works for that page and other from that patch but in admin director doesn't. What shoul i do?