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
I don't see a way to disable or changes these default policies registered, for instance, I have defined my own in App\Providers\AutheServiceProvider likes this
but with this one defined in novatoolpermissions I do see a way to disable the one I don't want to use
privatefunctiondefineGates()
{
collect([
'assignRoles',
'manageRoles',
'manageUsers',
'viewRoles',
'viewUsers',
'viewNova',
'canBeGivenAccess',
])->each(function ($permission) {
Gate::define($permission, function ($user) use ($permission) {
if ($this->nobodyHasAccess($permission)) {
returntrue;
}
return$user->hasRoleWithPermission($permission);
});
});
}
I got duplicates Manage Users, View Users I want the best way to disable these default one's without changing it into the vendor folder
The text was updated successfully, but these errors were encountered:
yayann
added a commit
to SGS-Optimisation/novatoolpermissions
that referenced
this issue
Jan 23, 2023
I don't see a way to disable or changes these default policies registered, for instance, I have defined my own in App\Providers\AutheServiceProvider likes this
but with this one defined in novatoolpermissions I do see a way to disable the one I don't want to use
I got duplicates Manage Users, View Users I want the best way to disable these default one's without changing it into the vendor folder
The text was updated successfully, but these errors were encountered: