bug 11447: don't do security group check if both groups belong to the same domain

status 11447: resolved fixed
This commit is contained in:
alena 2011-09-15 10:01:47 -07:00
parent 450ace1051
commit 9bb95e915e
1 changed files with 3 additions and 1 deletions

View File

@ -624,7 +624,9 @@ public class SecurityGroupManagerImpl implements SecurityGroupManager, SecurityG
}
// Check permissions
_accountMgr.checkAccess(caller, null, groupVO);
if (domainId != groupVO.getDomainId()) {
throw new PermissionDeniedException("Can't add security group id=" + groupVO.getDomainId() + " as it belongs to different domain");
}
authorizedGroups.add(groupVO);
}