Skip to content

Commit

Permalink
skip authorization when loaded (#43)
Browse files Browse the repository at this point in the history
* skip authorization when loaded

* kill whitespace
  • Loading branch information
idfake authored Feb 1, 2024
1 parent 7e9b8a3 commit 1517276
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Controller/CaptchaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public function beforeFilter(EventInterface $event) {
} elseif ($this->components()->has('Authentication') && method_exists($this->components()->get('Authentication'), 'addUnauthenticatedActions')) {
$this->components()->get('Authentication')->addUnauthenticatedActions(['display']);
}
if ($this->components()->has('Authorization') && method_exists($this->components()->get('Authorization'), 'skipAuthorization')) {
$this->components()->get('Authorization')->skipAuthorization();
}
}

/**
Expand Down

0 comments on commit 1517276

Please sign in to comment.