CS-15096: Disable network actions for non-admins

reviewed-by: jessica
This commit is contained in:
Brian Federle 2012-05-25 12:55:34 -07:00
parent 70687e4b44
commit c71790b5c7

View File

@ -253,6 +253,10 @@ cloudStack.actionFilter = {
var jsonObj = args.context.item;
var allowedActions = [];
if (!isAdmin()) {
return [];
}
if(jsonObj.type == 'Isolated') {
allowedActions.push('edit'); //only Isolated network can be upgraded
}