Skip to content

Commit 0632e49

Browse files
committed
Use authorizeAction and authorizationChecked for skip actions
1 parent 0eedf37 commit 0632e49

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎src/Controller/Component/AuthorizationComponent.php‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ protected function performCheck(
143143
$action = $this->getDefaultAction($request);
144144
}
145145

146-
if (in_array($action, $this->_config['skipAuthorization'])) {
147-
$this->getService($request)->skipAuthorization();
148-
146+
$this->authorizeAction();
147+
if ($this->getService($request)->authorizationChecked()) {
149148
return true;
150149
}
151150

0 commit comments

Comments
 (0)