Vylepšení odevzdávátka #13

Merged
zelvuska merged 17 commits from vylepseni_odevzdavatka into master 2023-01-02 20:25:01 +01:00
Showing only changes of commit 1f16f194f7 - Show all commits

View file

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