Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GuardDoesNotMatch should accept collection but string is passed in Role::hasPermissionTo method #2745

Open
4unkur opened this issue Oct 26, 2024 · 0 comments

Comments

@4unkur
Copy link

4unkur commented Oct 26, 2024

In https://github.com/spatie/laravel-permission/blob/main/src/Models/Role.php#L188

it passes $guardName and it is a nullable string whereas GuardDoesNotMatch exception accepts Collection as a second argument.

@4unkur 4unkur changed the title a GuardDoesNotMatch should accept collection but string is passed in Role::hasPermissionTo method Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant