mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-28 19:41:33 +02:00
Load user features alongside id and email.
Fixes a bug where project features were not applied properly, and instead fell back to the free-account defaults.
This commit is contained in:
@@ -30,7 +30,7 @@ module.exports = CollaboratorsHandler =
|
||||
return callback(error) if error?
|
||||
return callback null, members.map (m) -> m.id
|
||||
|
||||
USER_PROJECTION: { _id: 1, email: 1 }
|
||||
USER_PROJECTION: { _id: 1, email: 1, features: 1}
|
||||
getMembersWithPrivilegeLevels: (project_id, callback = (error, members) ->) ->
|
||||
CollaboratorsHandler.getMemberIdsWithPrivilegeLevels project_id, (error, members = []) ->
|
||||
return callback(error) if error?
|
||||
|
||||
Reference in New Issue
Block a user