Removes Add Organization Admin Button

This commit is contained in:
Alex Corey 2019-04-04 08:13:40 -04:00
parent ce4e34eb28
commit 6bcb471584
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 }}`;