diff --git a/app/models/Data/User.php b/app/models/Data/User.php index 1fe205c..7bb2cbb 100644 --- a/app/models/Data/User.php +++ b/app/models/Data/User.php @@ -265,6 +265,16 @@ class User extends Base 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 */ @@ -282,7 +292,7 @@ class User extends Base $this->password = $password; return $this; } - + /** * @return mixed */