mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-25 08:03:01 +03:00
Redirect to login when Booking disabled
This commit is contained in:
parent
2723003594
commit
22185e7204
2 changed files with 361 additions and 292 deletions
|
@ -106,7 +106,7 @@ class Booking extends EA_Controller
|
|||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
$company_name = setting('company_name');
|
||||
$company_logo = setting('company_logo');
|
||||
$company_color = setting('company_color');
|
||||
|
@ -115,6 +115,13 @@ class Booking extends EA_Controller
|
|||
$matomo_analytics_url = setting('matomo_analytics_url');
|
||||
$matomo_analytics_site_id = setting('matomo_analytics_site_id');
|
||||
|
||||
/* Edit by Stefano Beccalli */
|
||||
if ($disable_booking) {
|
||||
redirect('login');
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
if ($disable_booking) {
|
||||
$disable_booking_message = setting('disable_booking_message');
|
||||
|
||||
|
|
644
composer.lock
generated
644
composer.lock
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue