Meteor-Community-Packages/meteor-roles
在 GitHub 查看Internal function _getInheritedRoleNames() should return role object
Open
#304 创建于 2019年12月10日
enhancementgood first issue
仓库指标
- Star
- (919 star)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
The function _getInheritedRoleNames() is currently used to construct the array inheritedRoles on a role-assignment, where it only takes over the parameter _id. If you have data stored on the role, wouldn't it be better to have it copied along?
If one of these parameter changes, the programmer extending this package would then be responsible for also keeping this data updated there. If he doesn't need it there, he can extend this package wrapping this function to remove the additional properties.