diff --git a/odevzdavatko/views.py b/odevzdavatko/views.py index 3b29d397..834b7624 100644 --- a/odevzdavatko/views.py +++ b/odevzdavatko/views.py @@ -259,8 +259,9 @@ class EditReseniView(DetailReseniView): return ctx def check_access(self): - """ Na orga máme nároky už v urls.py """ - pass + # Na orga máme nároky už v urls.py ale better safe then sorry + if not self.request.user.je_org: + raise PermissionDenied() def hodnoceniReseniView(request, pk, *args, **kwargs):