From 7acbacbf1a359c2e5f19daccd444988222b06a20 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Mon, 28 Aug 2017 14:37:06 +0200 Subject: [PATCH] Un permanencier peut entierrement modif une clef (demande darchou <3) --- users/views.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/users/views.py b/users/views.py index 25ba09a..bc2a437 100644 --- a/users/views.py +++ b/users/views.py @@ -290,10 +290,7 @@ def edit_clef(request, clefid): except Clef.DoesNotExist: messages.error(request, u"Entrée inexistante" ) return redirect("/users/index_clef/") - if request.user.has_perms(('bureau',)): clef = ClefForm(request.POST or None, instance=clef_instance) - else: - clef = BaseClefForm(request.POST or None, instance=clef_instance) if clef.is_valid(): with transaction.atomic(), reversion.create_revision(): clef.save()