mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
bug 13669: template page, ISO page - delete action is not allowed when owner is system.
This commit is contained in:
parent
f58cec83c6
commit
b7ded0ff1b
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user