From c088430106737e08827bb52b31a04c76b8b0d1f7 Mon Sep 17 00:00:00 2001 From: Adrian Perez Date: Wed, 15 Sep 2021 08:42:40 +0200 Subject: [PATCH] Require login to view site statistics --- index.php | 1 + 1 file changed, 1 insertion(+) 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.