This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit da40a7ba995556c05fd657bcd65e3fb9de461134
Author: Marcus Christie <machr...@iu.edu>
AuthorDate: Thu Nov 15 13:05:14 2018 -0500

    AIRAVATA-2907 Only allow Admins to edit GatewayResourceProfile
---
 django_airavata/apps/admin/templates/admin/admin_base.html | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/django_airavata/apps/admin/templates/admin/admin_base.html 
b/django_airavata/apps/admin/templates/admin/admin_base.html
index 613b84c..6cf7e9d 100644
--- a/django_airavata/apps/admin/templates/admin/admin_base.html
+++ b/django_airavata/apps/admin/templates/admin/admin_base.html
@@ -18,9 +18,11 @@
         <a href="{% url 'django_airavata_admin:group_resource_profile' %}" 
class="c-nav__item {% if request.active_nav_item == 'group_resource_profile' 
%}is-active{% endif %}" data-toggle=tooltip data-placement=right title="Group 
Resource Profile">
             <i class="fa fa-server"></i> <span class=sr-only>Group Resource 
Profile</span>
         </a>
+        {% if request.is_gateway_admin %}
         <a href="{% url 'django_airavata_admin:gateway_resource_profile' %}" 
class="c-nav__item {% if request.active_nav_item == 'gateway_resource_profile' 
%}is-active{% endif %}" data-toggle=tooltip data-placement=right title="Gateway 
Resource Profile">
             <i class="fa fa-tasks"></i> <span class=sr-only>Gateway Resource 
Profile</span>
         </a>
+        {% endif %}
 {% endblock %}
 {% block scripts %}
     {{ block.super }}

Reply via email to