Skip to content

Commit

Permalink
Fix set cookie access check
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterHolvoet committed Oct 11, 2021
1 parent 779a7e6 commit 8b2e13e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.4] - 2021-10-11
### Fixed
- Fix set cookie access check

## [1.1.3] - 2021-10-11
### Fixed
- Fix existing cookies not being deleted when disabling the integration
Expand Down
2 changes: 1 addition & 1 deletion src/Usersnap.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static function (AccessResult $finalResult, AccessResult $result) {
AccessResult::neutral()
);

return $result->isAllowed();
return !$result->isForbidden();
}

public function shouldRemoveCookieOnLogout(): bool
Expand Down

0 comments on commit 8b2e13e

Please sign in to comment.