added new logout button and fixed pdf viewing

This commit is contained in:
2025-08-14 11:10:09 +02:00
parent 1c2a0416bb
commit 7ef49b4924
4 changed files with 35 additions and 6 deletions

View File

@@ -680,6 +680,11 @@ class WarehouseShippingNoteController extends TTCrud {
return;
}
if (strpos($_SERVER['REMOTE_ADDR'], '172.18') === 0) {
self::returnJson([]);
return;
}
$calendars = CalendarModel::getAll();
// loop through all calendars and find the one with user_id as the worker's id