Skip to content

Commit eaaeb69

Browse files
authored
fix: A bad configuration was used in forRoles
1 parent f1ab177 commit eaaeb69

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)