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

illegal offset type #126

Open
amirhilal-uxbert opened this issue Jun 23, 2021 · 0 comments
Open

illegal offset type #126

amirhilal-uxbert opened this issue Jun 23, 2021 · 0 comments

Comments

@amirhilal-uxbert
Copy link

Describe the bug
I was trying to use $user->getAllPermissions() and I got an exception illegal offset type

To Reproduce
Steps to reproduce the behavior:

  1. inside roles collection admin_ids array delete one of the values or change to null

Screenshots
image

Environment :

  • Laravel 5.7
  • laravel-permission-mongodb: ^1.10.1

Additional context
Would have been great if there was a better exception handling to this issue

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