Releases: Meteor-Community-Packages/meteor-roles
Releases · Meteor-Community-Packages/meteor-roles
v3.3.0
- Update dependencies
- Make compatible with Meteor 2.3
v3.2.3
- Update dependencies
v3.2.2
- Fixed fails like
rev.push is not a function
andnumber 1 is not iterable (cannot read property Symbol(Symbol.iterator))
callingRoles.getRolesForUser()
v3.2.1
v3.2.0
v3.1.0
v3.0.0
- Role assignments have been moved from the
users
documents to a separate collection calledrole-assignment
, available atMeteor.roleAssignment
. - Role assignments are not published automatically. If you want all your role-assignments to be published automatically please include the following code:
Meteor.publish(null, function () {
if (this.userId) {
return Meteor.roleAssignment.find({ 'user._id': this.userId });
} else {
this.ready()
}
})
- [BC] The behavior of
getRolesForUser()
used with the optionfullObjects
changed. In case you need the old behavior ... - Added option
anyScope
toremoveUsersFromRoles()
- Add option
onlyScoped
togetRolesForUser()
to allow limiting the result to only scoped permissions - All functions (excepted for those listed above) work with 2.x arguments, but in 3.x accept extra arguments and/or options.
- Details and reasoning can be found in #276