Allow admin to manage own proposals

Do not block admins from changing votes, result or messaging
on their own proposals.
This commit is contained in:
Joel Addison 2019-10-02 23:27:51 +10:00
parent edc517c671
commit 94f8837288

View file

@ -369,7 +369,7 @@ def review_detail(request, pk):
latest_vote = None
if request.method == "POST":
if request.user in speakers:
if not admin and request.user in speakers:
return access_not_permitted(request)
if "vote_submit" in request.POST or "vote_submit_and_random" in request.POST: