You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 14, 2018. It is now read-only.
Is there some way to make a role have full access to all actions?
I have a system that uses the BjyAuthorize, but I extended some classes to get the roles, guards and resources from a database. That works pretty well, but I've got to always register the new module on the database to get access to this module, otherwise I got a 403 error, because if the controller and action weren't defined on guards, then there is not permission for them.
So I don't think is cool if I want to create a new controller and action I've got to go there and register both of them even if I neither saw they working.
Even if I not use database and define the guards inside an array on the config file, I'll have to do the same thing: before I test my actions, I got to put them on the config file.
Thanks.
The text was updated successfully, but these errors were encountered:
Yeah, but I solve it in other way. I extended the BjyAuthorize\Service\Authorize and replaced the isAllowed() method. I also have a parameter admin_role in the bjyauthorize.global.config.php, that defines which is the admin role. So, in the isAllowed(), when the role logged in is an admin, the function return true, before call $this->acl->isAllowed()
Is there some way to make a role have full access to all actions?
I have a system that uses the BjyAuthorize, but I extended some classes to get the roles, guards and resources from a database. That works pretty well, but I've got to always register the new module on the database to get access to this module, otherwise I got a 403 error, because if the controller and action weren't defined on guards, then there is not permission for them.
So I don't think is cool if I want to create a new controller and action I've got to go there and register both of them even if I neither saw they working.
Even if I not use database and define the guards inside an array on the config file, I'll have to do the same thing: before I test my actions, I got to put them on the config file.
Thanks.
The text was updated successfully, but these errors were encountered: