Skip to content
Snippets Groups Projects
Commit 0ef7d73a authored by baldwinlouie's avatar baldwinlouie Committed by Yas Naoi
Browse files

Issue #3181005 by baldwinlouie, yas: Fix duplicate Security permissions validation bug

parent 8e0760a0
No related branches found
No related tags found
No related merge requests found
......@@ -132,7 +132,7 @@ class IpPermissionDataConstraintValidator extends ConstraintValidator implements
$entry->getFromPort() === $ip_permission->getFromPort());
// If there are dup_ports, check the corresponding ip4, ip6 or groupid.
if ($dup_ports === TRUE) {
if ($dup_ports === TRUE && ($entry->getIpProtocol() === $ip_permission->getIpProtocol())) {
if ($source === 'ip4' && $entry->getCidrIp() === $ip_permission->getCidrIp()) {
$this->context->addViolation($constraint->duplicateIP4);
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment