From 03bb51014a30051eb2840206ffca69c23e08a2ab Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Thu, 22 Mar 2012 10:30:34 -0700 Subject: [PATCH] bug 14451: cloudstack 3.0 UI - volume page - remove the "Migrate Volume" option for regular user and domain admin. [reviewed-by: Brian] --- ui/scripts/storage.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ui/scripts/storage.js b/ui/scripts/storage.js index 905e589e8f8..7c34ed3988b 100644 --- a/ui/scripts/storage.js +++ b/ui/scripts/storage.js @@ -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"); }