refactor: update authorization logic in AppServiceProvider to restrict access for OWNER role
This commit is contained in:
parent
abe84899c9
commit
d19bd8000a
@ -40,7 +40,7 @@ protected function configureObservers(): void
|
|||||||
protected function configureAuthorization(): void
|
protected function configureAuthorization(): void
|
||||||
{
|
{
|
||||||
Gate::before(function ($user, string $ability) {
|
Gate::before(function ($user, string $ability) {
|
||||||
if ($user->hasRole(Role::DEVELOPER->value) || $user->hasRole(Role::OWNER->value)) {
|
if ($user->hasRole(Role::DEVELOPER->value)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user