Meteor-Community-Packages/meteor-roles

Add new function to change scope of existing role assignment

Open

#382 创建于 2023年10月15日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)JavaScript (919 star) (161 fork)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?

贡献者指南