From 86f8e8084b71c62ebbd36241bacb4f951ee882f0 Mon Sep 17 00:00:00 2001 From: William Date: Sun, 27 Feb 2022 09:16:03 +0100 Subject: [PATCH] Commit --- app/inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/inc.php b/app/inc.php index 7f91430..fdf16eb 100644 --- a/app/inc.php +++ b/app/inc.php @@ -22,7 +22,6 @@ spl_autoload_register(function ($class_name) { /* === App Setup === */ - // Displays a custom page on error or exception new ErrorHandler; @@ -40,6 +39,8 @@ $session = new Session; // Handles current user session $user = new User($session, $database); +// THIS IS IMPORTANT!! +// Without it, everyone will have access to any page without having to be logged in. // Decides if the user is allowed to view current page new AccessControl($user, $config['root_url']);