Skip to content

Commit c90f54b

Browse files
authoredOct 21, 2022
Merge pull request #2224 from Sy-Dante/patch-1
fix UnauthorizedException: Wrong configuration was used in forRoles
2 parents f1ab177 + eaaeb69 commit c90f54b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Exceptions/UnauthorizedException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static function forRoles(array $roles): self
1414
{
1515
$message = 'User does not have the right roles.';
1616

17-
if (config('permission.display_permission_in_exception')) {
17+
if (config('permission.display_role_in_exception')) {
1818
$permStr = implode(', ', $roles);
1919
$message = 'User does not have the right roles. Necessary roles are '.$permStr;
2020
}

0 commit comments

Comments
 (0)