app/models/Data/User.php: adding isActive() method.
This commit is contained in:
parent
42f3a60817
commit
6a31e85994
1 changed files with 10 additions and 0 deletions
|
|
@ -255,6 +255,16 @@ class User extends Base
|
|||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if this is a active user.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isActive()
|
||||
{
|
||||
return $this->status == self::STATUS_ACTIVE;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
|
|
|
|||
Reference in a new issue