refactor: remove deprecated isBanned method

This commit is contained in:
2022-08-18 23:31:39 +01:00
parent d3f471a546
commit a608a0e1ea

View File

@@ -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');