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']);