mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-08 16:50:44 +02:00
null check user in logging
This commit is contained in:
@@ -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)->
|
||||
|
||||
Reference in New Issue
Block a user