From 9de9f79deeb87f8cdf74953213da08c8b90e6a08 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Wed, 28 Jun 2017 17:33:13 -0400 Subject: [PATCH] Hide delete icon when user doesn't have permissions to delete job --- awx/ui/client/src/job-results/job-results.partial.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/job-results/job-results.partial.html b/awx/ui/client/src/job-results/job-results.partial.html index dedc200007..ee39e70cc0 100644 --- a/awx/ui/client/src/job-results/job-results.partial.html +++ b/awx/ui/client/src/job-results/job-results.partial.html @@ -50,7 +50,7 @@ data-placement="top" ng-click="deleteJob()" ng-hide="job_status == 'running' || - job_status == 'pending' " + job_status == 'pending' || !job.summary_fields.user_capabilities.delete" aw-tool-tip="Delete" data-original-title="" title="">