From d002ea5c1534323327b89b1be1ac31af77da98d0 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 23 Oct 2018 16:36:34 +0530 Subject: Gave staff user permission to modify proposals --- website/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/views.py b/website/views.py index b1411c1..c0f1c54 100644 --- a/website/views.py +++ b/website/views.py @@ -532,7 +532,7 @@ def status(request, proposal_id=None): user = request.user context = {} if user.is_authenticated: - if user.is_superuser: + if user.is_staff: proposal = Proposal.objects.get(id=proposal_id) if 'accept' in request.POST: proposal.status = "Accepted" @@ -650,7 +650,7 @@ def status_change(request): user = request.user context = {} if user.is_authenticated: - if user.is_superuser: + if user.is_staff: if 'delete' in request.POST: delete_proposal = request.POST.getlist('delete_proposal') for proposal_id in delete_proposal: -- cgit