mirror of
https://github.com/ansible/awx.git
synced 2026-05-17 22:37:41 -02:30
Merge pull request #3614 from AlexSCorey/2220-AdminBtnRBAC
Removes Add Organization Admin Button Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -27,6 +27,7 @@ export default ['$stateParams', '$scope', 'Rest', '$state',
|
||||
$scope.organization_name = data.name;
|
||||
$scope.name = data.name;
|
||||
$scope.org_id = data.id;
|
||||
$scope.canAddAdmins = data.summary_fields.user_capabilities.edit;
|
||||
|
||||
$scope.orgRelatedUrls = data.related;
|
||||
|
||||
|
||||
@@ -275,7 +275,8 @@ let lists = [{
|
||||
add: {
|
||||
awToolTip: i18n._('Add existing user to organization as administrator'),
|
||||
actionClass: 'at-Button--add',
|
||||
ngClick: 'addUsers()'
|
||||
ngClick: 'addUsers()',
|
||||
ngShow:'canAddAdmins'
|
||||
}
|
||||
};
|
||||
list.listTitle = i18n._('Admins') + ` | {{ name }}`;
|
||||
|
||||
Reference in New Issue
Block a user