Skip to content

Commit

Permalink
PermissionListener - change to ucfirst.
Browse files Browse the repository at this point in the history
  • Loading branch information
danilovl committed Jan 7, 2023
1 parent 523547f commit 0b4f4c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/PermissionListener.php
Expand Up @@ -82,7 +82,7 @@ protected function checkPermissions(PermissionMiddleware $permissionMiddleware):
continue;
}

$checkMethod = sprintf('check%s', strtoupper($method));
$checkMethod = sprintf('check%s', ucfirst($method));
$access = $this->{$checkMethod}($permissionMiddleware);
if ($access === false) {
if ($permissionMiddleware->{$method}->accessDeniedHttpException) {
Expand Down

0 comments on commit 0b4f4c8

Please sign in to comment.