Browse Source

add: Pro jistotu v DetailView i kontrola u orga

pull/13/head
Jonas Havelka 2 years ago
parent
commit
1f16f194f7
  1. 5
      odevzdavatko/views.py

5
odevzdavatko/views.py

@ -259,8 +259,9 @@ class EditReseniView(DetailReseniView):
return ctx return ctx
def check_access(self): def check_access(self):
""" Na orga máme nároky už v urls.py """ # Na orga máme nároky už v urls.py ale better safe then sorry
pass if not self.request.user.je_org:
raise PermissionDenied()
def hodnoceniReseniView(request, pk, *args, **kwargs): def hodnoceniReseniView(request, pk, *args, **kwargs):

Loading…
Cancel
Save