bug 14451: cloudstack 3.0 UI - volume page - remove the "Migrate Volume" option for regular user and domain admin.

This commit is contained in:
Jessica Wang 2012-03-22 10:32:31 -07:00
parent c42fceab27
commit 217e357c4e
1 changed files with 4 additions and 2 deletions

View File

@ -1191,8 +1191,10 @@
}
}
else { // Disk not attached
allowedActions.push("remove");
allowedActions.push("migrateToAnotherStorage");
allowedActions.push("remove");
if(isAdmin()) {
allowedActions.push("migrateToAnotherStorage");
}
if (jsonObj.storagetype == "shared") {
allowedActions.push("attachDisk");
}