Meteor-Community-Packages/meteor-roles

Add new function to change scope of existing role assignment

Open

#382 opened on 2023年10月15日

GitHub で見る
 (1 comment) (0 reactions) (0 assignees)JavaScript (919 stars) (161 forks)batch import
enhancementgood first issue

説明

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?

コントリビューターガイド