mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 07:39:02 +02:00
Merge pull request #2637 from overleaf/jpa-hotfix-graceful-session-access
[ErrorController] handleError: access session gracefully GitOrigin-RevId: 90c8ce0be80f5f198139a3b079c3a81e200112db
This commit is contained in:
@@ -23,7 +23,7 @@ module.exports = ErrorController = {
|
||||
handleError(error, req, res, next) {
|
||||
const user = AuthenticationController.getSessionUser(req)
|
||||
// log errors related to SAML flow
|
||||
if (req.session.saml) {
|
||||
if (req.session && req.session.saml) {
|
||||
SamlLogHandler.log(req.session.saml.universityId, req.sessionID, {
|
||||
error: {
|
||||
message: error && error.message,
|
||||
|
||||
Reference in New Issue
Block a user