From 5733c96041b2abd44590f697e44ebada5c54a8c1 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Fri, 17 Feb 2012 16:00:00 -0800 Subject: [PATCH] bug 13669: template page, ISO page - delete action is not allowed when owner is system. [reviewed-by: Brian] --- ui/scripts/templates.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/scripts/templates.js b/ui/scripts/templates.js index 231abeb412b..f85f3b9ba87 100644 --- a/ui/scripts/templates.js +++ b/ui/scripts/templates.js @@ -1220,7 +1220,7 @@ //if (((isUser() && jsonObj.ispublic == true && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account))) if (((isAdmin() == false && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account))) //if neither root-admin, nor item owner || (jsonObj.isready == false && jsonObj.status != null && jsonObj.status.indexOf("Downloaded") != -1) - || (jsonObj.domainid == 1 && jsonObj.account == "system")) { + || (jsonObj.account == "system")) { //do nothing } else { @@ -1279,7 +1279,7 @@ //if (((isUser() && jsonObj.ispublic == true && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account))) if (((isAdmin() == false && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account))) //if neither root-admin, nor item owner || (jsonObj.isready == false && jsonObj.status != null && jsonObj.status.indexOf("Downloaded") != -1) - || (jsonObj.domainid == 1 && jsonObj.account == "system") + || (jsonObj.account == "system") ) { //do nothing }