Skip to content

Commit

Permalink
Merge pull request #15499 from craftcms/bugfix/headers-filter-site-co…
Browse files Browse the repository at this point in the history
…ndition

Bugfix/headers filter site condition
  • Loading branch information
brandonkelly authored Aug 7, 2024
2 parents 9eb3520 + ac3978d commit c92523f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Fixed a PHP error that could occur when generating URLs via console requests. ([#15374](https://github.com/craftcms/cms/issues/15374))
- Fixed a bug where `craft\filters\Headers` and `craft\filters\Cors` were applied to control panel requests rather than site requests. ([#15495](https://github.com/craftcms/cms/issues/15495))

## 4.11.0.2 - 2024-08-06

Expand Down
2 changes: 1 addition & 1 deletion src/filters/SiteFilterTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function isActive(mixed $action): bool
return false;
}

return !$this->isCurrentSiteActive();
return $this->isCurrentSiteActive();
}

protected function setSite(null|array|int|string|Site $value): void
Expand Down

0 comments on commit c92523f

Please sign in to comment.