mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
CS-16612: cloudstack UI - Shared VLAN UI change - Network page - if it's Shared network and login is not root-admin, hide delete and restart option.
This commit is contained in:
parent
ef0be741c3
commit
539760ec68
@ -264,14 +264,18 @@ cloudStack.actionFilter = {
|
||||
guestNetwork: function(args) {
|
||||
var jsonObj = args.context.item;
|
||||
var allowedActions = [];
|
||||
|
||||
|
||||
if(jsonObj.type == 'Isolated') {
|
||||
allowedActions.push('edit'); //only Isolated network can be upgraded
|
||||
allowedActions.push('restart');
|
||||
allowedActions.push('remove');
|
||||
}
|
||||
|
||||
allowedActions.push('restart');
|
||||
allowedActions.push('remove');
|
||||
|
||||
else if(jsonObj.type == 'Shared') {
|
||||
if(isAdmin()) {
|
||||
allowedActions.push('restart');
|
||||
allowedActions.push('remove');
|
||||
}
|
||||
}
|
||||
return allowedActions;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user