Skip to content

Commit

Permalink
Published a package under new organization.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitar committed Oct 3, 2019
1 parent 93a7b2f commit 740592c
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 160 deletions.
145 changes: 0 additions & 145 deletions History.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,148 +12,3 @@
* Functions `addRolesToParent` and `removeRolesFromParent` were added.
* `addUsersToRoles` and `setUserRoles` now require that roles exist and will not create missing roles automatically.
* All functions work with 1.0 arguments, but in 2.0 accept extra arguments and/or options.

## v1.2.14

* Compatibility with Meteor 1.2. #133
* Pass options through to getUsersInRole. #77
* Fix formatting and punctuation in readme. #118
* Use named publish func so clients can check when ready(). #88
* Only support Meteor v1.2+ going forward; Older package versions
will remain available.


## v1.2.13

* Specific release just for bug in Meteor 0.9.1 [1]. #53

Note: Supporting both 0.9.0 and 0.9.1 with the same code base is not
possible [2] so this version only supports Meteor <0.9.0 and 0.9.1+;
not 0.9.0 or 0.9.0.1. Users of 0.9.0 will still use v1.2.12 which has
no functional differences.

1. https://github.com/meteor/meteor/issues/2521#issuecomment-54702099
2. https://github.com/meteor/meteor/issues/2531


## 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](https://github.com/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](https://github.com/nickmoylan)


## v1.0.5

* Fix for Issue #5 - error adding role for single user. Contributed by [@mcrider](https://github.com/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
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
meteor-roles
============
meteor-roles v2
===============

**This version of the package is being maintained just for security and compatibility issues.
Please consider the [latest version](https://github.com/Meteor-Community-Packages/meteor-roles).**

Authorization package for Meteor - compatible with built-in accounts package.

Expand Down Expand Up @@ -421,7 +424,7 @@ The `examples` directory contains Meteor apps which show off the following featu

View the `flow-router` example app online @ <a href="http://roles.meteor.com/" target="_blank">http://roles.meteor.com/</a>

1. `git clone https://github.com/alanning/meteor-roles.git`
1. `git clone https://github.com/Meteor-Community-Packages/meteor-roles.git`
2. choose an example, eg.
* `cd meteor-roles/examples/iron-router` or
* `cd meteor-roles/examples/flow-router`
Expand Down
4 changes: 2 additions & 2 deletions examples/flow-router-advanced/main/client/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ <h2>Start Page</h2>
{{> noteOfTheDay}}

<div>
<p>This application is an example app for the <a href="https://github.com/alanning/meteor-roles"><em>meteor-roles</em></a> smart package.</p>
<p>This application is an example app for the <a href="https://github.com/Meteor-Community-Packages/meteor-roles"><em>meteor-roles</em></a> smart package.</p>
</div>

{{> securityNote}}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions examples/flow-router/client/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ <h2>Start Page</h2>
{{> noteOfTheDay}}

<div>
<p>This application is an example app for the <a href="https://github.com/alanning/meteor-roles"><em>meteor-roles</em></a> smart package.</p>
<p>This application is an example app for the <a href="https://github.com/Meteor-Community-Packages/meteor-roles"><em>meteor-roles</em></a> smart package.</p>
</div>

{{> securityNote}}
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions examples/iron-router/client/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ <h2>Start Page</h2>
{{> noteOfTheDay}}

<div>
<p>This application is an example app for the <a href="https://github.com/alanning/meteor-roles"><em>meteor-roles</em></a> smart package.</p>
<p>This application is an example app for the <a href="https://github.com/Meteor-Community-Packages/meteor-roles"><em>meteor-roles</em></a> smart package.</p>
</div>

{{> securityNote}}
</div>
</div>
Expand Down
12 changes: 6 additions & 6 deletions package.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
Package.describe({
summary: "Authorization package for Meteor",
version: "2.0.0-rc.1",
git: "https://github.com/alanning/meteor-roles.git",
version: "2.0.0",
git: "https://github.com/Meteor-Community-Packages/meteor-roles.git",
name: "alanning:roles"
});

Package.onUse(function (api) {
var both = ['client', 'server'];
api.versionsFrom("[email protected]");

api.versionsFrom("[email protected]");
var both = ['client', 'server'];

api.use(['underscore',
'accounts-base',
'tracker',
'mongo',
'check'], both);

api.use(['blaze'], 'client', {weak: true});
api.use(['blaze@2.3.3'], 'client', {weak: true});

api.export('Roles');

Expand All @@ -28,7 +28,7 @@ Package.onUse(function (api) {
});

Package.onTest(function (api) {
api.versionsFrom("METEOR@1.4.1");
api.versionsFrom("METEOR@1.8.1");

var both = ['client', 'server'];

Expand Down

0 comments on commit 740592c

Please sign in to comment.