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:
Alena Prokharchyk 2012-03-14 13:30:03 -07:00
parent d28de139b8
commit e73a23e8c0

View File

@ -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;