app/models/Data/User.php: Adding isSuspended()
This commit is contained in:
parent
ff15ee697c
commit
4ff351d39d
1 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Reference in a new issue