mirror of https://github.com/apache/cloudstack.git
bug 14271: return only domainId in error message when caller is not authorized to operate within the domain
status 14271: resolved fixed
This commit is contained in:
parent
d28de139b8
commit
e73a23e8c0
|
|
@ -63,10 +63,10 @@ public class DomainChecker extends AdapterBase implements SecurityChecker {
|
|||
|
||||
if (caller.getType() == Account.ACCOUNT_TYPE_NORMAL) {
|
||||
if (caller.getDomainId() != domainId) {
|
||||
throw new PermissionDeniedException(caller + " does not have permission to operate within " + domain);
|
||||
throw new PermissionDeniedException(caller + " does not have permission to operate within domain id=" + domain.getId());
|
||||
}
|
||||
} else if (!_domainDao.isChildDomain(caller.getDomainId(), domainId)) {
|
||||
throw new PermissionDeniedException(caller + " does not have permission to operate within " + domain);
|
||||
throw new PermissionDeniedException(caller + " does not have permission to operate within domain id=" + domain.getId());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue