-
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed examples and updated the readme
- Loading branch information
1 parent
567d2d8
commit 08fc424
Showing
19 changed files
with
461 additions
and
283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
## v3.0.0 | ||
|
||
* ... | ||
* 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: | ||
```js | ||
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 ...](https://github.com/Meteor-Community-Packages/meteor-roles/pull/276/commits/41d2ed493852f21cf508b5b0b76e4f8a09ae8f5c#diff-b2ab7f7879884835e55802c6a35ee27e) | ||
* 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](https://github.com/Meteor-Community-Packages/meteor-roles/pull/276) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
METEOR@1.2.1 | ||
METEOR@1.8.1 |
Oops, something went wrong.