Skip to content

Commit

Permalink
DGIR-52 : Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
Prashant-bd committed Nov 16, 2023
1 parent 56005ad commit 2febf83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/search_api/processor/EmbargoIpRestriction.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function preprocessSearchQuery(QueryInterface $query) {
$currentUserIpCidr = $this->ipToCidr($currentUserIp);

// Add the condition to check if the user's IP
// is in the list using CIDR notation
// is in the list using CIDR notation.
$conditions->addCondition('embargo_ip', $currentUserIpCidr);
$conditions->addCondition('embargo_ip', NULL);
}
Expand Down

0 comments on commit 2febf83

Please sign in to comment.