Skip to content

Commit

Permalink
- Removed any permission
Browse files Browse the repository at this point in the history
  • Loading branch information
dash8x committed Mar 6, 2024
1 parent 85108ea commit cf15c6b
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -444,26 +444,6 @@ public function getIsPendingAttribute(): bool
return $this->status == UserStatuses::PENDING;
}

/**
* Check if the user has any of the following permissions
*
* @param array|string $permissions
*/
public function anyPermission($permissions): bool
{
if (! is_array($permissions)) {
$permissions = [$permissions];
}

foreach ($permissions as $permission) {
if ($this->can($permission)) {
return true;
}
}

return false;
}

/**
* User visible
*/
Expand Down

0 comments on commit cf15c6b

Please sign in to comment.