Skip to content

Releases: Meteor-Community-Packages/meteor-roles

v3.3.0

24 Jun 13:42
Compare
Choose a tag to compare
  • Update dependencies
  • Make compatible with Meteor 2.3

v3.2.3

13 Sep 20:44
Compare
Choose a tag to compare
  • Update dependencies

v3.2.2

13 Sep 20:44
Compare
Choose a tag to compare
  • Fixed fails like rev.push is not a function and number 1 is not iterable (cannot read property Symbol(Symbol.iterator)) calling Roles.getRolesForUser()

v3.2.1

13 Sep 20:43
Compare
Choose a tag to compare
  • Roles.getRolesForUser() should not fail during a call of Roles.addUsersToRoles() #311 (@ggerber)

v3.2.0

13 Sep 20:43
Compare
Choose a tag to compare
  • New option onlyScope on getUsersInRole() returning only users having this role in a scoped assignment #298

v3.1.0

13 Sep 20:42
Compare
Choose a tag to compare
  • Allow setUserRoles() to replace the roles of all scopes #294

v3.0.0

13 Sep 20:42
Compare
Choose a tag to compare
  • Role assignments have been moved from the users documents to a separate collection called role-assignment, available at Meteor.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 option fullObjects changed. In case you need the old behavior ...
  • Added option anyScope to removeUsersFromRoles()
  • Add option onlyScoped to getRolesForUser() 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