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

Allow single profile per act instead of array of profiles #12

Open
Wardormeur opened this issue Oct 5, 2018 · 0 comments
Open

Allow single profile per act instead of array of profiles #12

Wardormeur opened this issue Oct 5, 2018 · 0 comments

Comments

@Wardormeur
Copy link
Contributor

If profile is misdefined and uses a single object, the permission will be ignored.
https://github.com/CoderDojo/cp-permissions-plugin/blob/master/lib/check_profiles.js#L199 should ensure that profiles, if an object, should be casted as an array, or reject

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