diff --git a/app/mourne_application.cpp b/app/mourne_application.cpp index 27ef565..be8b2d3 100644 --- a/app/mourne_application.cpp +++ b/app/mourne_application.cpp @@ -17,15 +17,10 @@ #include "modules/users/user.h" #include "modules/users/user_controller.h" -bool MourneApplication::ensure_login(Request *request) { +bool MourneApplication::is_logged_in(Request *request) { Ref u = request->reference_data["user"]; - if (!u.is_valid()) { - request->send_redirect("/user/login"); - return false; - } - - return true; + return u.is_valid(); } void MourneApplication::index(Object *instance, Request *request) { @@ -51,7 +46,6 @@ void MourneApplication::index(Object *instance, Request *request) { */ - //dynamic_cast(instance)->index(request); request->body += "test"; request->compile_and_send_body(); @@ -67,7 +61,7 @@ void MourneApplication::add_menu(Request *request, const MenuEntries index) { HTMLTag *t; -/* + /*