mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-25 16:13:17 +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
|
@ -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
644
composer.lock
generated
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue