FIX - permissions
This commit is contained in:
parent
bcd68f0ffe
commit
06be5f576f
@ -112,7 +112,8 @@ public function primaryRole(): string
|
|||||||
|
|
||||||
public function may(Permission|iterable|string $perm): bool
|
public function may(Permission|iterable|string $perm): bool
|
||||||
{
|
{
|
||||||
return $this->isAdmin() || $this->can($perm);
|
return $this->isAdmin() || $this->hasAnyPermission($perm);
|
||||||
|
// return $this->isAdmin() || $this->can($perm);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function lastSeen(): Carbon
|
public function lastSeen(): Carbon
|
||||||
|
Loading…
Reference in New Issue
Block a user