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
trafficstars

Hi, I'm trying to use meteor-roles package, but i faced a problem : Roles.userIsInRole(myId, 'admin')) always return false in client side. I read that I had to publish Meteor.roleAssignement, but...

The docs at https://meteor-community-packages.github.io/meteor-roles/classes/Roles.html do not contain `getScopesForUser`

Calling, say, `Roles.addUsersToRoles` on client-side in a Meteor method doesn't work due to roles not being published. Causing this kind of error (trying to add user to a role called...

bug
v3

My goal for the next major version, which will be `v4`, is to move everything out of the `Meteor` object and do everything to have this package doing nothing if...

enhancement

Since Meteor now supports TypeScript, it would be nice to have type definitions on this package. Documentation: https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html Template: https://www.typescriptlang.org/docs/handbook/declaration-files/templates/module-d-ts.html

enhancement
help wanted

when I looked for `getRolesForUser` function, it send me to the page: https://meteor-community-packages.github.io/meteor-roles/classes/Roles.html#method_getRolesForUser when click on the source code, this is the page: https://meteor-community-packages.github.io/meteor-roles/files/roles_roles_common.js.html#l366 ``` /** * Retrieve users roles...

The code reveals that I need to wait for `Roles.subscription.ready()`, additionally I wait for `Accounts.loginServicesConfigured()` so that my user is ready as well. `Roles.subscription.ready()` should be documented in the Client...

Something that I have mentioned in #295 Export collections directly. We could potentially for v4 (or v5) stop adding them to the `Meteor` object.

Currently every user who visits the site creates a subscription to the roles collection. However, this is a waste since we never update that collection, thus it would be better...

enhancement
help wanted