fix speaker editing so staff can edit rather than rely on group
This commit is contained in:
parent
af04f9e763
commit
5944bb5577
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ def speaker_edit(request, pk=None):
|
||||||
except Speaker.DoesNotExist:
|
except Speaker.DoesNotExist:
|
||||||
return redirect("speaker_create")
|
return redirect("speaker_create")
|
||||||
else:
|
else:
|
||||||
if request.user.groups.filter(name="organizer").exists(): # @@@
|
if request.user.is_staff:
|
||||||
speaker = get_object_or_404(Speaker, pk=pk)
|
speaker = get_object_or_404(Speaker, pk=pk)
|
||||||
else:
|
else:
|
||||||
raise Http404()
|
raise Http404()
|
||||||
|
|
Loading…
Reference in a new issue