Skip to content
New issue

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

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

Already on GitHub? # to your account

Don't throw an exception when checking hasAllPermissions() #2248

Merged
merged 1 commit into from
Nov 19, 2022

Conversation

mtawil
Copy link
Contributor

@mtawil mtawil commented Nov 17, 2022

I believe this change must be the same as the hasAnyPermission functionality as it coded here.
Also, throwing an error while we expect a boolean value doesn't make sense.

@drbyte drbyte changed the title Don't throw an exception when checking permission Don't throw an exception when checking hasAllPermissions() Nov 17, 2022
@drbyte
Copy link
Collaborator

drbyte commented Nov 19, 2022

Thanks!

@drbyte drbyte merged commit 76dd153 into spatie:main Nov 19, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants