This commit is contained in:
William 2022-02-27 09:16:03 +01:00
parent a13fd59373
commit 86f8e8084b

View File

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