From 57c43e7994d1615d4d9d0d6c062239cd721f0b7b Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 17 May 2018 23:26:36 +0100 Subject: [PATCH] Move create and work queue to user drop down --- app/models.py | 5 +++++ app/templates/base.html | 4 ++++ app/views/packages.py | 8 -------- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/models.py b/app/models.py index 544a14ec..f3ab06a4 100644 --- a/app/models.py +++ b/app/models.py @@ -120,6 +120,11 @@ class User(db.Model, UserMixin): self.display_name = username self.rank = UserRank.NOT_JOINED + def canAccessTodoList(self): + return Permission.APPROVE_NEW.check(self) or \ + Permission.APPROVE_RELEASE.check(self) or \ + Permission.APPROVE_CHANGES.check(self) + def isClaimed(self): return self.rank.atLeast(UserRank.NEW_MEMBER) diff --git a/app/templates/base.html b/app/templates/base.html index 025bf820..504563ef 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -41,6 +41,7 @@