Meteor-Community-Packages / meteor-roles

Authorization package for Meteor, compatible with built-in accounts packages
http://meteor-community-packages.github.io/meteor-roles/
MIT License
921 stars 168 forks source link

Is setUserRoles and addUsersToRoles same or different #164

Closed suhail-ansari-apconic closed 8 years ago

suhail-ansari-apconic commented 8 years ago

There are these two methods in your API docs so which one to use and why?

alanning commented 8 years ago

setUserRoles will set the user's roles to exactly those and replace any existing roles.

addUsersToRoles will keep whatever existing roles the user may already have.