From 4577a37badaaadefac83f5c89f997ed16dad0aba Mon Sep 17 00:00:00 2001 From: Patrick Smith Date: Sun, 30 Sep 2018 22:23:52 -0400 Subject: [PATCH] Hide edit project link for users that cannot edit projects --- templates/workspaces/projects/index.html | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/templates/workspaces/projects/index.html b/templates/workspaces/projects/index.html index 0ae585fa..3c073ade 100644 --- a/templates/workspaces/projects/index.html +++ b/templates/workspaces/projects/index.html @@ -25,10 +25,12 @@

{{ project.name }} ({{ project.environments|length }} environments)

- - {{ Icon('edit') }} - edit - + {% if user_can(permissions.RENAME_APPLICATION_IN_WORKSPACE) %} + + {{ Icon('edit') }} + edit + + {% endif %}