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:
parent
edc517c671
commit
94f8837288
1 changed files with 1 additions and 1 deletions
2
vendor/symposion/reviews/views.py
vendored
2
vendor/symposion/reviews/views.py
vendored
|
@ -369,7 +369,7 @@ def review_detail(request, pk):
|
||||||
latest_vote = None
|
latest_vote = None
|
||||||
|
|
||||||
if request.method == "POST":
|
if request.method == "POST":
|
||||||
if request.user in speakers:
|
if not admin and request.user in speakers:
|
||||||
return access_not_permitted(request)
|
return access_not_permitted(request)
|
||||||
|
|
||||||
if "vote_submit" in request.POST or "vote_submit_and_random" in request.POST:
|
if "vote_submit" in request.POST or "vote_submit_and_random" in request.POST:
|
||||||
|
|
Loading…
Reference in a new issue