summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSashi202018-09-28 10:48:37 +0530
committerSashi202018-09-28 10:48:37 +0530
commitd13ba980c9b3fbd8117f4bc21e4378c38c086453 (patch)
tree314e2b0fe54a43e69bee0104487ae724fdbdb6b3
parent9b4ad968f1b70f3c111e1e4fce4fce46bd968629 (diff)
downloadnccps-2018-d13ba980c9b3fbd8117f4bc21e4378c38c086453.tar.gz
nccps-2018-d13ba980c9b3fbd8117f4bc21e4378c38c086453.tar.bz2
nccps-2018-d13ba980c9b3fbd8117f4bc21e4378c38c086453.zip
Modified access for staff user to view proposals
-rwxr-xr-xstatic/website/templates/view-proposals.html4
-rw-r--r--website/views.py6
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 @@
<a href="{% url 'website:proposal' %}" class="btn btn-primary">Back</a>
</center>
{% else %}
- {% if user.is_superuser %}
+ {% if user.is_staff %}
<div style="float:right"><input type="submit" id="dump" class ="btn btn-info" value="Export as csv" name="dump"/></div>
<br>
{% endif %}
@@ -126,7 +126,7 @@
</p>
- {% if user.is_staff %}
+ {% if user.is_superuser %}
<input type="submit" id="delete" class ="btn btn-info" value="Delete" name="delete"/>
<center>
<input type="submit" id="accept" class ="btn btn-info" value="Accept" name="accept"/>
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))