diff --git a/index.php b/index.php index e37420a..6aafb3a 100644 --- a/index.php +++ b/index.php @@ -32,6 +32,7 @@ require_once(__DIR__ . '/../../config.php'); // Permissions check. +require_login(); require_capability('local/sitestats:view', context_system::instance()); // Initialize page.