mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -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:
commit
00a9ae0e72
@ -8,7 +8,7 @@ export default ['$stateParams', '$scope', 'Rest', '$state',
|
||||
'$compile', 'Wait', 'OrgAdminList', 'OrgAdminsDataset', 'i18n',
|
||||
'Prompt', 'ProcessErrors', 'GetBasePath', '$filter',
|
||||
function($stateParams, $scope, Rest, $state,
|
||||
$compile, Wait, OrgAdminList, OrgAdminsDataset, i18n,
|
||||
$compile, Wait, OrgAdminList, OrgAdminsDataset, i18n,
|
||||
Prompt, ProcessErrors, GetBasePath, $filter) {
|
||||
|
||||
var orgBase = GetBasePath('organizations');
|
||||
@ -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 }}`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user