Skip to content

Commit b7ded0f

Browse files
author
Jessica Wang
committed
bug 13669: template page, ISO page - delete action is not allowed when owner is system.
1 parent f58cec8 commit b7ded0f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎ui/scripts/templates.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@
12201220
//if (((isUser() && jsonObj.ispublic == true && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account)))
12211221
if (((isAdmin() == false && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account))) //if neither root-admin, nor item owner
12221222
|| (jsonObj.isready == false && jsonObj.status != null && jsonObj.status.indexOf("Downloaded") != -1)
1223-
|| (jsonObj.domainid == 1 && jsonObj.account == "system")) {
1223+
|| (jsonObj.account == "system")) {
12241224
//do nothing
12251225
}
12261226
else {
@@ -1279,7 +1279,7 @@
12791279
//if (((isUser() && jsonObj.ispublic == true && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account)))
12801280
if (((isAdmin() == false && !(jsonObj.domainid == g_domainid && jsonObj.account == g_account))) //if neither root-admin, nor item owner
12811281
|| (jsonObj.isready == false && jsonObj.status != null && jsonObj.status.indexOf("Downloaded") != -1)
1282-
|| (jsonObj.domainid == 1 && jsonObj.account == "system")
1282+
|| (jsonObj.account == "system")
12831283
) {
12841284
//do nothing
12851285
}

0 commit comments

Comments
 (0)