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 @@