refactor: update authorization logic in AppServiceProvider to restrict access for OWNER role

This commit is contained in:
Yoga Pangestu 2026-06-25 21:16:12 +07:00
parent abe84899c9
commit d19bd8000a

View File

@ -40,7 +40,7 @@ protected function configureObservers(): void
protected function configureAuthorization(): void
{
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;
}