telescope gate

This commit is contained in:
2026-03-17 13:17:55 +07:00
parent f384b3338d
commit 6547418c21
2 changed files with 2 additions and 8 deletions
+2 -4
View File
@@ -56,10 +56,8 @@ class TelescopeServiceProvider extends TelescopeApplicationServiceProvider
*/
protected function gate(): void
{
Gate::define('viewTelescope', function (User $user) {
return in_array($user->email, [
//
]);
Gate::define('viewTelescope', function (User $user) {
return $user->role === Role::SUPER_ADMIN;
});
}
}