From d13ba980c9b3fbd8117f4bc21e4378c38c086453 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Fri, 28 Sep 2018 10:48:37 +0530 Subject: Modified access for staff user to view proposals --- static/website/templates/view-proposals.html | 4 ++-- website/views.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/static/website/templates/view-proposals.html b/static/website/templates/view-proposals.html index 6a3089a..8717d30 100755 --- a/static/website/templates/view-proposals.html +++ b/static/website/templates/view-proposals.html @@ -20,7 +20,7 @@ Back {% else %} - {% if user.is_superuser %} + {% if user.is_staff %}

{% endif %} @@ -126,7 +126,7 @@

- {% if user.is_staff %} + {% if user.is_superuser %}
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)) -- cgit