Meteor-Community-Packages/meteor-roles

Add new function to change scope of existing role assignment

Open

#382 geöffnet am 15. Okt. 2023

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (919 Stars) (161 Forks)batch import
enhancementgood first issue

Beschreibung

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 want to just change scope I need to remove role and then add it again. For use cases where user can be assigned the same role into multiple scopes, the function should fail if it finds more than one results or have an optional parameter to define the previous scope.

Thoughts?

Contributor Guide