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:
@@ -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 \
|
||||
|
Reference in New Issue
Block a user