hiding Remdiate Inventory button for non org-admins/admins

also found an error in deleting permissions
This commit is contained in:
Jared Tabor 2017-07-28 18:09:21 -07:00
parent 9ab141753c
commit 07f472381e
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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'
}