diff --git a/app/models/Data/User.php b/app/models/Data/User.php index 122ba68..1fe205c 100644 --- a/app/models/Data/User.php +++ b/app/models/Data/User.php @@ -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 */