add ability to show backups to superadmins
This commit is contained in:
1 parent
c242d48e06
commit
382317f1ae
3 files changed
+11
-2
No files matched your search
@@ -83,6 +83,14 @@ public static function isMe(): Closure
|
||||
return fn () => Gate::allows('isMe', auth()->user());
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if user is admin
|
||||
*/
|
||||
public function isAdmin(): Closure
|
||||
{
|
||||
return fn () => Gate::allows('isAdmin', auth()->user());
|
||||
}
|
||||
|
||||
/**
|
||||
* Readonly only on "update" pages
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user