Backups install
This commit is contained in:
1 parent
d060b27ea3
commit
7e24ffd6bc
10 files changed
+836
-3
No files matched your search
@@ -79,6 +79,18 @@ public function isMe(): bool
|
||||
return $this->email === 'nurmuhammet@mail.com';
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if user is super admin.
|
||||
*/
|
||||
public function isSuperAdmin(): bool
|
||||
{
|
||||
if ($this->isMe()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return $this->hasRole('superadmin');
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if user is admin.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user