From 6a31e8599496deabe098e172fc1bc2edaf1406d8 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 3 Dec 2019 00:03:32 +0100 Subject: [PATCH] app/models/Data/User.php: adding isActive() method. --- app/models/Data/User.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 */