diff --git a/app/mourne_application.cpp b/app/mourne_application.cpp index be8b2d3..916a268 100644 --- a/app/mourne_application.cpp +++ b/app/mourne_application.cpp @@ -18,6 +18,10 @@ #include "modules/users/user_controller.h" bool MourneApplication::is_logged_in(Request *request) { + if (!request->session) { + return false; + } + Ref u = request->reference_data["user"]; return u.is_valid();