notification manager

This commit is contained in:
Egor Matveev
2022-03-23 22:39:54 +03:00
parent c457f37247
commit 05af84d569
8 changed files with 33 additions and 7 deletions

View File

@@ -9,9 +9,8 @@ class CheckersView(BaseView):
set: Set
def pre_handle(self):
self.current_set = self.set
if (
self.request.user != self.current_set.creator
and self.request.user.username not in self.current_set.editors
self.request.user != self.set.creator
and self.request.user.username not in self.set.editors
):
raise AccessError()