mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 UI - VPC - private gateway - only root-admin is allowed to delete a private gateway.
This commit is contained in:
parent
845569b121
commit
13fd9c9774
|
|
@ -561,7 +561,16 @@
|
|||
},
|
||||
success: function(json) {
|
||||
var item = json.listprivategatewaysresponse.privategateway[0];
|
||||
args.response.success({ data: item });
|
||||
args.response.success({
|
||||
data: item,
|
||||
actionFilter: function(args) {
|
||||
var allowedActions = [];
|
||||
if(isAdmin()) {
|
||||
allowedActions.push("remove");
|
||||
}
|
||||
return allowedActions;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue