Archived
1
0
Fork 0

app/models/Data/User.php: Adding isSuspended()

This commit is contained in:
Henrik Hautakoski 2022-08-28 17:46:16 +02:00
parent ff15ee697c
commit 4ff351d39d

View file

@ -265,6 +265,16 @@ class User extends Base
return $this->status == self::STATUS_ACTIVE; return $this->status == self::STATUS_ACTIVE;
} }
/**
* Returns true if this user is suspended.
*
* @return bool
*/
public function isSuspended()
{
return $this->status == self::STATUS_SUSPENDED;
}
/** /**
* @return mixed * @return mixed
*/ */
@ -282,7 +292,7 @@ class User extends Base
$this->password = $password; $this->password = $password;
return $this; return $this;
} }
/** /**
* @return mixed * @return mixed
*/ */