mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7175:Domain Id is exposed in error message when cross domain
access is attempted when listing Vms.
This commit is contained in:
parent
351cc829e3
commit
e6ead3176c
|
|
@ -80,10 +80,10 @@ public class DomainChecker extends AdapterBase implements SecurityChecker {
|
|||
|
||||
if (_accountService.isNormalUser(caller.getId())) {
|
||||
if (caller.getDomainId() != domainId) {
|
||||
throw new PermissionDeniedException(caller + " does not have permission to operate within domain id=" + domain.getId());
|
||||
throw new PermissionDeniedException(caller + " does not have permission to operate within domain id=" + domain.getUuid());
|
||||
}
|
||||
} else if (!_domainDao.isChildDomain(caller.getDomainId(), domainId)) {
|
||||
throw new PermissionDeniedException(caller + " does not have permission to operate within domain id=" + domain.getId());
|
||||
throw new PermissionDeniedException(caller + " does not have permission to operate within domain id=" + domain.getUuid());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue