mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
hiding Remdiate Inventory button for non org-admins/admins
also found an error in deleting permissions
This commit is contained in:
parent
9ab141753c
commit
07f472381e
@ -20,7 +20,7 @@ export default ['$scope', 'ListDefinition', 'Dataset', 'Wait', 'Rest', 'ProcessE
|
||||
$('#prompt-modal').modal('hide');
|
||||
Wait('start');
|
||||
Rest.setUrl(url);
|
||||
Rest.post({ "disassociate": true, "id": userId })
|
||||
Rest.post({ "disassociate": true, "id": Number(userId) })
|
||||
.success(function() {
|
||||
Wait('stop');
|
||||
$state.go('.', null, {reload: true});
|
||||
|
||||
@ -201,7 +201,7 @@ function(i18n, InventoryCompletedJobsList) {
|
||||
relatedButtons: {
|
||||
remediate_inventory: {
|
||||
ngClick: 'remediateInventory(id, insights_credential)',
|
||||
ngShow: 'is_insights && mode !== "add"',
|
||||
ngShow: 'is_insights && mode !== "add" && canEditOrg',
|
||||
label: i18n._('Remediate Inventory'),
|
||||
class: 'Form-primaryButton'
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user