From 46be7348aa10e7841e9b4d71c121eaba0a095d56 Mon Sep 17 00:00:00 2001 From: Ricsi Date: Sun, 12 Jul 2020 13:58:36 +0200 Subject: [PATCH] enable download when not logged in --- _class/class_page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_class/class_page.php b/_class/class_page.php index 1abc585..2a9c652 100644 --- a/_class/class_page.php +++ b/_class/class_page.php @@ -90,7 +90,7 @@ class page { //var_dump($user); ini_set('include_path', '_include/'); //ini_set('include_path', '/var/www/badminton_coach/_include'); - if (!empty($user) && $user->is_logged_in()) { + if ((!empty($user) && $user->is_logged_in()) || ($this->get_subpage() == "download_report")) { if ($this->is_page()) { //TODO: mi van ha nincs page? átirányítás v 404? //page alapján betölti a tpl-t