Skip to content

Commit

Permalink
[TASK] Don't allow to pass not authorized sites to filter
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Mar 7, 2024
1 parent 7b630d9 commit d22c631
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Domain/Model/Dto/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public function isSiteSet(): bool

public function setSite(string $site): self
{
// Don't allow to pass not allowed site in filter
if (array_key_exists($site, $this->getAllowedSites()) === false) {
$site = '';
}
$this->site = $site;
return $this;
}
Expand Down

0 comments on commit d22c631

Please sign in to comment.