mirror of https://github.com/apache/cloudstack.git
Merge pull request #1595 from shapeblue/ui-resize-show-allusers
ui: show resize volume button to all users The resize volume is support on all major hypervisors (Xen, VMware, KVM). The hypervisor key is returned by the list volumes response only for admins but not for users or domain admin users. This removes the check, as the operation is supported on all major hypervisors that CloudStack supports. With this bug fix all users would see resize volume button in the UI. /cc @swill * pr/1595: ui: show resize volume button to all users Signed-off-by: Will Stevens <williamstevens@gmail.com>
This commit is contained in:
commit
a38279de6a
|
|
@ -2365,10 +2365,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (jsonObj.hypervisor == "KVM" || jsonObj.hypervisor == "XenServer" || jsonObj.hypervisor == "VMware") {
|
||||
if (jsonObj.state == "Ready" || jsonObj.state == "Allocated") {
|
||||
allowedActions.push("resize");
|
||||
}
|
||||
if (jsonObj.state == "Ready" || jsonObj.state == "Allocated") {
|
||||
allowedActions.push("resize");
|
||||
}
|
||||
|
||||
if (jsonObj.state != "Allocated") {
|
||||
|
|
|
|||
Loading…
Reference in New Issue