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:
softwarefactory-project-zuul[bot] 2019-04-04 13:03:43 +00:00 committed by GitHub
commit 00a9ae0e72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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 }}`;