mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05: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:
parent
184c8adb84
commit
68f860b28d
1 changed files with 1 additions and 1 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue