Skip to content

Commit c71790b

Browse files
committed
CS-15096: Disable network actions for non-admins
reviewed-by: jessica
1 parent 70687e4 commit c71790b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/scripts/sharedFunctions.js

+4
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,10 @@ cloudStack.actionFilter = {
253253
var jsonObj = args.context.item;
254254
var allowedActions = [];
255255

256+
if (!isAdmin()) {
257+
return [];
258+
}
259+
256260
if(jsonObj.type == 'Isolated') {
257261
allowedActions.push('edit'); //only Isolated network can be upgraded
258262
}

0 commit comments

Comments
 (0)