static removeAllRolesFor(aMeetingSeriesID) { const ms = new MeetingSeries(aMeetingSeriesID); let affectedUsers = ms.visibleFor; if (affectedUsers && affectedUsers.length > 0) { Roles.removeUsersFromRoles(affectedUsers, UserRoles.allRolesNumerical(), aMeetingSeriesID); } }
Roles.removeUsersFromRoles(otherUserId, UserRoles.allRolesNumerical(), meetingSeriesId); Roles.addUsersToRoles(otherUserId, newRole, meetingSeriesId); } else { Roles.removeUsersFromRoles(otherUserId, UserRoles.allRolesNumerical(), meetingSeriesId); } else { throw new Meteor.Error('Cannot set roles for meeting series', 'You are not moderator of this meeting series.');