|
@@ -37,7 +37,7 @@ trait HasPermissions
|
|
|
*/
|
|
|
public function can($ability): bool
|
|
|
{
|
|
|
- if (!$ability) {
|
|
|
+ if (! $ability) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
@@ -62,7 +62,7 @@ trait HasPermissions
|
|
|
*/
|
|
|
public function cannot(string $permission): bool
|
|
|
{
|
|
|
- return !$this->can($permission);
|
|
|
+ return ! $this->can($permission);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -73,6 +73,7 @@ trait HasPermissions
|
|
|
public function isAdministrator(): bool
|
|
|
{
|
|
|
$roleModel = config('admin.database.roles_model');
|
|
|
+
|
|
|
return $this->isRole($roleModel::ADMINISTRATOR);
|
|
|
}
|
|
|
|