We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc10793 commit b2feabbCopy full SHA for b2feabb
apps/meteor/ee/server/api/roles.ts
@@ -104,7 +104,7 @@ API.v1.addRoute(
104
throw new Meteor.Error('error-invalid-role-properties', 'The role properties are invalid.');
105
}
106
107
- const userId = Meteor.userId();
+ const { userId } = this;
108
109
if (!userId || !(await hasPermissionAsync(userId, 'access-permissions'))) {
110
throw new Meteor.Error('error-action-not-allowed', 'Accessing permissions is not allowed');
0 commit comments