mirror of https://github.com/apache/cloudstack.git
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:
parent
450ace1051
commit
9bb95e915e
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue