Backups install

This commit is contained in:
2023-12-03 18:11:46 +05:00
parent d060b27ea3
commit 7e24ffd6bc
10 changed files with 836 additions and 3 deletions

View File

@@ -79,6 +79,18 @@ class User extends Authenticatable
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.
*/