mirror of https://github.com/apache/cloudstack.git
CS-15096: Disable network actions for non-admins
reviewed-by: jessica
This commit is contained in:
parent
70687e4b44
commit
c71790b5c7
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue