tenodi / permission

Npm package for hangling user permissions for routes based on roles.
https://www.npmjs.com/package/permission
MIT License
72 stars 22 forks source link

Check if the roles array is an empty array #12

Open soliemad opened 6 years ago

soliemad commented 6 years ago

I have a config file with different roles&permissions array that can be quickly changed. Many arrays are empty and they gent sent to permissions. Permissions treats it as a normal list of permissions and lets no user pass

soliemad commented 6 years ago

13