Redirect to login when Booking disabled

This commit is contained in:
Stefano Beccalli 2024-12-20 10:41:36 +01:00
parent 2723003594
commit 22185e7204
2 changed files with 361 additions and 292 deletions

View file

@ -106,7 +106,7 @@ class Booking extends EA_Controller
return; return;
} }
$company_name = setting('company_name'); $company_name = setting('company_name');
$company_logo = setting('company_logo'); $company_logo = setting('company_logo');
$company_color = setting('company_color'); $company_color = setting('company_color');
@ -115,6 +115,13 @@ class Booking extends EA_Controller
$matomo_analytics_url = setting('matomo_analytics_url'); $matomo_analytics_url = setting('matomo_analytics_url');
$matomo_analytics_site_id = setting('matomo_analytics_site_id'); $matomo_analytics_site_id = setting('matomo_analytics_site_id');
/* Edit by Stefano Beccalli */
if ($disable_booking) {
redirect('login');
exit();
}
if ($disable_booking) { if ($disable_booking) {
$disable_booking_message = setting('disable_booking_message'); $disable_booking_message = setting('disable_booking_message');

644
composer.lock generated

File diff suppressed because it is too large Load diff