mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +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 jsonObj = args.context.item;
|
||||||
var allowedActions = [];
|
var allowedActions = [];
|
||||||
|
|
||||||
|
if (!isAdmin()) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
if(jsonObj.type == 'Isolated') {
|
if(jsonObj.type == 'Isolated') {
|
||||||
allowedActions.push('edit'); //only Isolated network can be upgraded
|
allowedActions.push('edit'); //only Isolated network can be upgraded
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user