diff options
author | Sashi20 | 2018-09-28 10:49:15 +0530 |
---|---|---|
committer | GitHub | 2018-09-28 10:49:15 +0530 |
commit | 4ba7e9a1828b9b6fb400044c79dfeaa19ddf0723 (patch) | |
tree | 314e2b0fe54a43e69bee0104487ae724fdbdb6b3 /website | |
parent | 9f1a4acad9154efe03cd3590b73841d2561e5168 (diff) | |
parent | d13ba980c9b3fbd8117f4bc21e4378c38c086453 (diff) | |
download | nccps-2018-4ba7e9a1828b9b6fb400044c79dfeaa19ddf0723.tar.gz nccps-2018-4ba7e9a1828b9b6fb400044c79dfeaa19ddf0723.tar.bz2 nccps-2018-4ba7e9a1828b9b6fb400044c79dfeaa19ddf0723.zip |
Merge pull request #18 from Sashi20/master
Modified access for staff user to view proposals
Diffstat (limited to 'website')
-rw-r--r-- | website/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/website/views.py b/website/views.py index 784157d..035c719 100644 --- a/website/views.py +++ b/website/views.py @@ -136,7 +136,7 @@ def view_abstracts(request): context = {} count_list = [] if request.user.is_authenticated: - if user.is_superuser: + if user.is_staff: proposals = Proposal.objects.all().order_by('status') ratings = Ratings.objects.all() context['ratings'] = ratings @@ -449,7 +449,7 @@ def comment_abstract(request, proposal_id=None): user = request.user context = {} if user.is_authenticated: - if user.is_superuser: + if user.is_staff: try: proposal = Proposal.objects.get(id=proposal_id) try: @@ -531,7 +531,7 @@ def comment_abstract(request, proposal_id=None): template = loader.get_template('cfp.html') return HttpResponse(template.render(context, request)) else: - template = loader.get_template('cfp.html') + template = loader.get_template('abstract-details.html') return HttpResponse(template.render(context, request)) |