bug 12437: Root admin should be able to see all the templates.

Reviewed by : Kishan.
This commit is contained in:
Nitin Mehta 2011-12-08 16:43:57 +05:30
parent 4c142565c8
commit 8d677cb7ba

View File

@ -1234,7 +1234,7 @@ public class ManagementServerImpl implements ManagementServer {
if (accountName != null && domainId != null) {
permittedAccounts.add(_accountMgr.finalizeOwner(caller, accountName, domainId, null));
} else {
} else if (caller.getType() != Account.ACCOUNT_TYPE_ADMIN){
permittedAccounts.add(caller);
}