Visitar URL original
Is NULL a valid value for the permissions field? · Issue #107 · feathersjs/feathers-permissions · GitHub
Skip to content

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

Open

Description

@sokulski

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions