mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add other required properties for project load.
This commit is contained in:
parent
68f860b28d
commit
3d0268a486
1 changed files with 8 additions and 1 deletions
|
@ -30,7 +30,14 @@ module.exports = CollaboratorsHandler =
|
||||||
return callback(error) if error?
|
return callback(error) if error?
|
||||||
return callback null, members.map (m) -> m.id
|
return callback null, members.map (m) -> m.id
|
||||||
|
|
||||||
USER_PROJECTION: { _id: 1, email: 1, features: 1}
|
USER_PROJECTION: {
|
||||||
|
_id: 1,
|
||||||
|
email: 1,
|
||||||
|
features: 1,
|
||||||
|
first_name: 1,
|
||||||
|
last_name: 1,
|
||||||
|
signUpDate: 1
|
||||||
|
}
|
||||||
getMembersWithPrivilegeLevels: (project_id, callback = (error, members) ->) ->
|
getMembersWithPrivilegeLevels: (project_id, callback = (error, members) ->) ->
|
||||||
CollaboratorsHandler.getMemberIdsWithPrivilegeLevels project_id, (error, members = []) ->
|
CollaboratorsHandler.getMemberIdsWithPrivilegeLevels project_id, (error, members = []) ->
|
||||||
return callback(error) if error?
|
return callback(error) if error?
|
||||||
|
|
Loading…
Reference in a new issue