diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-07-13 21:28:08 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-07-13 21:28:11 +0100 |
commit | 28ee65809e3933ba08826c9ccddcc651f9dd23b1 (patch) | |
tree | 80bead9206975576e90559caafb1d8d9fc5af254 /app/models.py | |
parent | 1b42f3310a8d19145aa1c870794e394851921083 (diff) | |
download | cheatdb-28ee65809e3933ba08826c9ccddcc651f9dd23b1.tar.xz |
Fix 2 filter_by bugs
Fixes #101
Diffstat (limited to 'app/models.py')
-rw-r--r-- | app/models.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/models.py b/app/models.py index c703783..c402d09 100644 --- a/app/models.py +++ b/app/models.py @@ -85,9 +85,10 @@ class Permission(enum.Enum): return False if self == Permission.APPROVE_NEW or \ - self == Permission.APPROVE_CHANGES or \ - self == Permission.APPROVE_RELEASE or \ - self == Permission.APPROVE_SCREENSHOT: + self == Permission.APPROVE_CHANGES or \ + self == Permission.APPROVE_RELEASE or \ + self == Permission.APPROVE_SCREENSHOT or \ + self == Permission.SEE_THREAD: return user.rank.atLeast(UserRank.EDITOR) else: raise Exception("Non-global permission checked globally. Use Package.checkPerm or User.checkPerm instead.") |