mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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…
x
Reference in New Issue
Block a user