From 3309bd722454fa8696ce2415075f401e444c9910 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 30 Jan 2019 14:29:05 +0100 Subject: author and user management --- app/class/user.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/class/user.php') diff --git a/app/class/user.php b/app/class/user.php index 2e451a9..645f73e 100644 --- a/app/class/user.php +++ b/app/class/user.php @@ -169,6 +169,11 @@ class User return $this->level >= Modeluser::EDITOR; } + public function issupereditor() + { + return $this->level >= Modeluser::SUPEREDITOR; + } + public function isinvite() { return $this->level >= Modeluser::INVITE; -- cgit v1.2.3