refactor: remove deprecated isBanned method
This commit is contained in:
parent
d3f471a546
commit
a608a0e1ea
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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user