diff options
author | Sashi20 | 2018-10-23 16:37:13 +0530 |
---|---|---|
committer | GitHub | 2018-10-23 16:37:13 +0530 |
commit | 4c6c6c7903bdbb7b953bdab454c430da71cbb97e (patch) | |
tree | 0cf288da955c2c6743ac731dc38a328031132ba4 | |
parent | 2dc89ee81c5d8b7d892c2a0a0087d6fe66c2b124 (diff) | |
parent | d002ea5c1534323327b89b1be1ac31af77da98d0 (diff) | |
download | nccps-2018-4c6c6c7903bdbb7b953bdab454c430da71cbb97e.tar.gz nccps-2018-4c6c6c7903bdbb7b953bdab454c430da71cbb97e.tar.bz2 nccps-2018-4c6c6c7903bdbb7b953bdab454c430da71cbb97e.zip |
Merge pull request #43 from Sashi20/master
Gave staff user permission to modify proposals
-rw-r--r-- | website/views.py | 4 |
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: |