Skip to content

Latest commit

 

History

History
121 lines (59 loc) · 2.6 KB

History.md

File metadata and controls

121 lines (59 loc) · 2.6 KB

v1.2.12

  • Support Meteor 0.9.0 - new packaging system (hopefully). #52

v1.2.11

  • Add getGroupsForUser function. #39

v1.2.10

  • Fix behavior for groups with more than one period in their name. #44

v1.2.9

  • Let meteor test-packages ./roles work outside of an actual meteor app. #43

v1.2.8

  • Bump version number since Atmosphere only supports 3 levels

v1.2.7.1

  • Remove debug logging related to Blaze support

v1.2.7

  • Add support for Blaze UI (Meteor 0.8.0+)! The 'roles' package must come after 'ui' or 'standard-app-packages' in '.meteor/packages' for the 'isInRole' helper to be registered.

v1.2.6

  • Add descriptive error msg when group name starts with $
  • Auto-convert periods in group names to underscores

v1.2.5

  • Add setUserRoles function
  • Support passing user object for Roles.addUsersToRoles
  • Support passing user object for Roles.removeUsersFromRoles

v1.2.4

  • Update getRolesForUser to not return null when group is specified but user has no permissions

v1.2.3

  • Support using group in 'isInRole' client handlebars helper. Contributed by @pascoual

v1.2.2

  • Support passing user object in addition to _id for Roles.getRolesForUser

v1.2.1

  • Improve internal string value of Roles.GLOBAL_GROUP constant

v1.2.0

  • Use constant property Roles.GLOBAL_GROUP instead of hard-coded string to assign blanket roles/permissions for a user
  • Check Roles.GLOBAL_GROUP even if no group specified. This does not affect normal usage but provides a convenient short-hand for group users: Roles.addUsersToRoles(user, 'admin', Roles.GLOBAL_GROUP) Roles.userIsInRole(user, 'admin') => true
  • Expand test coverage

v1.1.1

  • Add support for global group which provides blanket roles/permissions across all groups for that user
  • Update Roles.getUsersInRole to accept an array of roles

v1.1.0

  • Add support for per-group roles
  • Fix for Issue #12 - Roles.userIsInRole returns whole user record This is a breaking change for code that relied on the undocumented (and incorrect) behavior!

v1.0.6

  • Add compatibility with Meteor 0.6.5 package system
  • Bug fix for Issue #11 - deleteRole by _id, not name for untrusted code. Contributed by @nickmoylan

v1.0.5

  • Fix for Issue #5 - error adding role for single user. Contributed by @mcrider
  • Get tests working under Meteor 0.6.0

v1.0.4

  • Remove need for client subscribe by using 'null' publish

v1.0.3

  • Fix for Issue #3 - conflict with spiderable package

v1.0.2

  • Murky, ancient history