trailsjs / sails-permissions

Comprehensive user permissions and entitlements system for sails.js and Waterline. Supports user authentication with passport.js, role-based permissioning, object ownership, and row-level security.
MIT License
418 stars 113 forks source link

Unknown policy #139

Open sylvainlap opened 9 years ago

sylvainlap commented 9 years ago

I tried to install sails-permissions on a fresh sailsjs install, and I've got this error:

error: Unknown policy, "basicauth", referenced in `config.policies`.
error: Are you sure that policy exists?
error: It would be located at: `/home/sylvainlap/DEV/WORKSPACE/permissions/api/policies/basicauth.js`

I followed the README: npm install sails-permissions sails-auth

So I use the last versions of sails-auth & sails-permissions.

s-devaney commented 9 years ago

I think it's a bug with the generator. I just created the missing policy myself.

dbkaplun commented 9 years ago

+1, sails-permissions@2.1.3

error: Unknown policy, "basicauth", referenced in `config.policies`.
error: Are you sure that policy exists?