From 01788263e29654f74a1dc370490a28efeb30b2db Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 28 Oct 2019 17:50:32 -0400 Subject: [PATCH] Hide delete button on job details from users without proper permissions --- .../src/screens/Job/JobDetail/JobDetail.jsx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/awx/ui_next/src/screens/Job/JobDetail/JobDetail.jsx b/awx/ui_next/src/screens/Job/JobDetail/JobDetail.jsx index fe006cd857..e279658c1e 100644 --- a/awx/ui_next/src/screens/Job/JobDetail/JobDetail.jsx +++ b/awx/ui_next/src/screens/Job/JobDetail/JobDetail.jsx @@ -272,13 +272,15 @@ function JobDetail({ job, i18n, history }) { )} )} - + {job.summary_fields.user_capabilities.delete && ( + + )} {isDeleteModalOpen && ( {i18n._(t`Cancel`)} +