mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
IP Address page - DomainAdmin is allowed to manage IP created by a regular user under the same domain.
This commit is contained in:
parent
b30b75cd18
commit
217b87afb7
@ -296,7 +296,8 @@ function ipToMidmenu(jsonObj, $midmenuItem1) {
|
||||
}
|
||||
|
||||
function isIpManageable(domainid, account) {
|
||||
if((g_domainid == domainid && g_account == account) || (isAdmin() && account!="system"))
|
||||
if(((g_domainid == domainid && g_account == account) || (g_domainid == domainid && isDomainAdmin()) || (isAdmin()))
|
||||
&& account!="system")
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user