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