mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 14:05:59 -03: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.organization_name = data.name;
|
||||||
$scope.name = data.name;
|
$scope.name = data.name;
|
||||||
$scope.org_id = data.id;
|
$scope.org_id = data.id;
|
||||||
|
$scope.canAddAdmins = data.summary_fields.user_capabilities.edit;
|
||||||
|
|
||||||
$scope.orgRelatedUrls = data.related;
|
$scope.orgRelatedUrls = data.related;
|
||||||
|
|
||||||
|
|||||||
@@ -275,7 +275,8 @@ let lists = [{
|
|||||||
add: {
|
add: {
|
||||||
awToolTip: i18n._('Add existing user to organization as administrator'),
|
awToolTip: i18n._('Add existing user to organization as administrator'),
|
||||||
actionClass: 'at-Button--add',
|
actionClass: 'at-Button--add',
|
||||||
ngClick: 'addUsers()'
|
ngClick: 'addUsers()',
|
||||||
|
ngShow:'canAddAdmins'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
list.listTitle = i18n._('Admins') + ` | {{ name }}`;
|
list.listTitle = i18n._('Admins') + ` | {{ name }}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user