From ee27313b425ecf474438baf140af5256a6c4a5de Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Thu, 26 Sep 2019 11:28:25 -0400 Subject: [PATCH] Change the visibility of the Grant Permission button on the team edit page In the case where MANAGE_ORGANIZATION_AUTH = False, an Org admin is still supposed to have the capability of adding resource roles to a team. This was in fact still doable directly in the API, or via the organization edit page. --- awx/ui/client/src/teams/teams.form.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/teams/teams.form.js b/awx/ui/client/src/teams/teams.form.js index 6d6f2593fc..6cd3b5bc26 100644 --- a/awx/ui/client/src/teams/teams.form.js +++ b/awx/ui/client/src/teams/teams.form.js @@ -170,7 +170,7 @@ export default ['i18n', function(i18n) { awToolTip: i18n._('Grant Permission'), actionClass: 'at-Button--add', actionId: 'button-add', - ngShow: '(team_obj.summary_fields.user_capabilities.edit || canAdd)' + ngShow: '(team_obj.summary_fields.user_capabilities.edit || canEditOrg)' } } }