boot gate

This commit is contained in:
Irwan Cahyono 2026-03-17 12:52:03 +07:00
parent 106283903e
commit 5d67971d07

View File

@ -38,6 +38,10 @@ public function boot(): void
URL::forceScheme('https');
}
Gate::define('viewApiDocs', function (User $user) {
return $user->role === Role::SUPER_ADMIN;
});
Gate::define('super_admin', function (User $user) {
return $user->role === Role::SUPER_ADMIN;
});