fix speaker editing so staff can edit rather than rely on group

This commit is contained in:
James Tauber 2012-10-11 22:41:45 -04:00
parent af04f9e763
commit 5944bb5577

View file

@ -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()