meteor-roles icon indicating copy to clipboard operation
meteor-roles copied to clipboard

Authorization package for Meteor, compatible with built-in accounts packages

Results 43 meteor-roles issues
Sort by recently updated
recently updated
newest added

* BREAKING: Synchronous functions are now available only on client side * BREAKING: Migration functions for past versions are no longer available * UI Helpers now use `console.debug` for debugging...

Adds `isInRole` function (and its async equivalent) as per #56 TODO: tests

enhancement

I see that there is a way to get the users with a specific role, but I'm interested in getting the users with a specific scope. Say there were a...

enhancement
good first issue

**Is your feature request related to a problem? Please describe.** Unclear to me is how the project maintainers look into the tree of roles, running into some issues and looking...

enhancement

Add a new function that would accept `userId`, `targetRole` and `newScope` which would then go and change the `scope` of the assigned role to the `newScope`. Right now if I...

enhancement
good first issue

I'm trying to get all users with a certain role (eg. `"admin"`) that belong to a certain subset of the `Meteor.users` collection (eg. those users that have a certain tenancy...

enhancement

Using [email protected], 3.4.0 has no warnings. Upgrading to 3.5.0 introduces a 6x UnhandledPromiseRejectionWarning warnings: W20230713-14:04:07.850(-5)? (STDERR) (node:83994) UnhandledPromiseRejectionWarning: TypeError: Cannot set property 'isCalledFromAsync' of undefined W20230713-14:04:07.851(-5)? (STDERR) at Mongo.Collection. (packages/mongo/collection.js:1002:41)...

bug

While migrating to version 2 then 3, by using `_forwardMigrate()` then `_forwardMigrate2()`, an exception is raised https://github.com/Meteor-Community-Packages/meteor-roles/blob/ff9cad1db7d451a992763bfb6cd24354925f100d/roles/roles_server.js#L325 No such index is present in the `user`'s collection **To Reproduce** Start with...

bug
good first issue

I have slow login method response times (10 seconds for 10 000 role assignments). Could the `Meteor.roleAssignment.find({ 'user._id': this.userId });` be faster with an index on `user._id` ?

v3

Hello: We have upgraded an old Meteor JS project (1.3.2.4) to current. This project was using V1 of alaning roles. Question 1) How can we upgrade from V1 -> V3...

question