mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 01:23:59 +00:00
Check for null project in joinProject
This commit is contained in:
parent
3578e41c9c
commit
970125b7a8
1 changed files with 1 additions and 0 deletions
|
@ -63,6 +63,7 @@ module.exports = EditorController =
|
|||
buildJoinProjectView: (project_id, user_id, callback = (error, project, privilegeLevel) ->) ->
|
||||
ProjectGetter.getProjectWithoutDocLines project_id, (error, project) ->
|
||||
return callback(error) if error?
|
||||
return callback(new Error("not found")) if !project?
|
||||
ProjectGetter.populateProjectWithUsers project, (error, project) ->
|
||||
return callback(error) if error?
|
||||
UserGetter.getUser user_id, { isAdmin: true }, (error, user) ->
|
||||
|
|
Loading…
Reference in a new issue