diff --git a/admin/cacheInfo.php b/admin/cacheInfo.php index ccddaa6..a7ae558 100644 --- a/admin/cacheInfo.php +++ b/admin/cacheInfo.php @@ -22,6 +22,12 @@ use Core\Helpers\{Cache, SystemFunctions}; require_once __DIR__ . '/inc/header.php'; + + global $USER; + if ($USER->isAdmin() === false) { + header('Location: ./'); + die(); + } ?>