mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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…
x
Reference in New Issue
Block a user