mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
null check user in logging
This commit is contained in:
parent
4c905c168a
commit
e077108993
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ module.exports = SecurityManager =
|
|||
if canModify
|
||||
next()
|
||||
else
|
||||
logger.log "user_id: #{user._id} email: #{user.email} can not modify project redirecting to restricted page"
|
||||
logger.log "user_id: #{user?._id} email: #{user?.email} can not modify project redirecting to restricted page"
|
||||
res.redirect('/restricted')
|
||||
|
||||
userCanModifyProject : userCanModifyProject = (user, project, callback)->
|
||||
|
|
Loading…
Reference in a new issue