refactor: remove deprecated isBanned method
This commit is contained in:
13
app/User.php
13
app/User.php
@@ -103,19 +103,6 @@ class User extends Authenticatable implements MustVerifyEmail
|
||||
|
||||
// UTILITY LOGIC
|
||||
|
||||
/**
|
||||
* Checks if a user is banned.
|
||||
*
|
||||
* @deprecated This method is obsolete, as it has been replaced by the suspension service.
|
||||
* @see AccountSuspensionService::isSuspended()
|
||||
*
|
||||
* @return bool Whether the user is banned
|
||||
*/
|
||||
public function isBanned(): bool
|
||||
{
|
||||
return ! $this->bans()->get()->isEmpty();
|
||||
}
|
||||
|
||||
public function isStaffMember()
|
||||
{
|
||||
return $this->hasAnyRole('reviewer', 'admin', 'hiringManager');
|
||||
|
Reference in New Issue
Block a user