- new 'roles' bucket will have [roleName] keys to maintain the data. - addUserRoles, removeUserRoles, removeRole was changed to support this feature.
…. tests added for isInRole & userRoles functions. version bumped
I'm changing the "Insufficient permissions" error to 403 because 401 is intended for users who are not authenticated. The 403, on the other hand, is intended for users who are authorized, but are not permitted access to the resource. http://stackoverflow.com/questions/3297048/403-forbidden-vs-401-unauthorized-http-responses
…g only a promise as return value.
…ect whether to use a single collection, or one collection per resource (default), for backwards compatibility Added tests for mongodb backend, with parameter useSingle=true
… per resource All tests pass, though note that I had to increase the timeout slightly for two of the tests to pass Could be that my machine is slow
Conflicts: Readme.md To avoid merge conflicts later.