Skip to content
Snippets Groups Projects
Commit 6490de2b authored by Todd Dembrey's avatar Todd Dembrey
Browse files

fixup! Don't confuse permissions with business and display logic

parent f5903c18
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ class ReviewCreateView(CreateView): ...@@ -36,7 +36,7 @@ class ReviewCreateView(CreateView):
def dispatch(self, request, *args, **kwargs): def dispatch(self, request, *args, **kwargs):
self.submission = get_object_or_404(ApplicationSubmission, id=self.kwargs['submission_pk']) self.submission = get_object_or_404(ApplicationSubmission, id=self.kwargs['submission_pk'])
if not self.submission.phase.has_perm('reivew', request.user): if not self.submission.phase.has_perm('review', request.user):
raise PermissionDenied() raise PermissionDenied()
return super().dispatch(request, *args, **kwargs) return super().dispatch(request, *args, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment