summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202018-10-23 16:36:34 +0530
committerSashi202018-10-23 16:36:34 +0530
commitd002ea5c1534323327b89b1be1ac31af77da98d0 (patch)
tree0cf288da955c2c6743ac731dc38a328031132ba4
parent2a622ada8becfbb5a5487411bec6311f3f3d524f (diff)
downloadnccps-2018-d002ea5c1534323327b89b1be1ac31af77da98d0.tar.gz
nccps-2018-d002ea5c1534323327b89b1be1ac31af77da98d0.tar.bz2
nccps-2018-d002ea5c1534323327b89b1be1ac31af77da98d0.zip
Gave staff user permission to modify proposals
-rw-r--r--website/views.py4
1 files 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: