meteor-roles
meteor-roles copied to clipboard
API docs linked to old version of codes
when I looked for getRolesForUser function, it send me to the page:
https://meteor-community-packages.github.io/meteor-roles/classes/Roles.html#method_getRolesForUser
when click on the source code, this is the page:
https://meteor-community-packages.github.io/meteor-roles/files/roles_roles_common.js.html#l366
/**
* Retrieve users roles
*
* @method getRolesForUser
* @param {String|Object} user User Id or actual user object
* @param {String} [group] Optional name of group to restrict roles to.
* User's Roles.GLOBAL_GROUP will also be included.
* @return {Array} Array of user's roles, unsorted.
*/
getRolesForUser: function (user, group) {
I believe this is old version of code.