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

Is NULL a valid value for the permissions field? #107

Open
sokulski opened this issue Mar 23, 2021 · 0 comments
Open

Is NULL a valid value for the permissions field? #107

sokulski opened this issue Mar 23, 2021 · 0 comments

Comments

@sokulski
Copy link

At present, I suspect that NULL is not a valid value for the permissions field. When that field is set to NULL I get the following error:

Cannot read property 'some' of null

In my application, a majority of users will have only a basic set of permissions over their own content. I had planned to leave permissions blank for them, but instead it seems I'll need to give them a basic "user" permission to satisfy this need.

In the future, it'd be neat if the hook could fail out (based on the value of the error parameter) when there are no roles to check.

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