1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-08-21 12:07:21 +02:00

Update questions

This commit is contained in:
Yohann D'ANELLO
2020-10-31 18:57:00 +01:00
parent 0d9c293443
commit d0007ee9b2
4 changed files with 52 additions and 20 deletions

View File

@@ -417,7 +417,7 @@ class UpdateQuestionView(LoginRequiredMixin, UpdateView):
form_class = QuestionForm
def dispatch(self, request, *args, **kwargs):
self.object = self.get_object(**kwargs)
self.object = self.get_object()
if not request.user.is_authenticated:
return self.handle_no_permission()
if request.user.registration.is_admin or \