sails-permissions icon indicating copy to clipboard operation
sails-permissions copied to clipboard

Unknown policy

Open sylvainlap opened this issue 10 years ago • 2 comments

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.

sylvainlap avatar Sep 01 '15 09:09 sylvainlap

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

s-devaney avatar Sep 28 '15 14:09 s-devaney

+1, [email protected]

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

dbkaplun avatar Oct 04 '15 03:10 dbkaplun