add ability to show backups to superadmins
This commit is contained in:
@@ -83,6 +83,14 @@ class NovaRepo
|
||||
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