From: Nik Okuntseff Date: Wed, 5 Dec 2018 13:19:26 +0000 (+0000) Subject: Another try to fix tt_client_project_binds. X-Git-Tag: timetracker_1.19-1~476 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=2a7ba96739989c4ae4c8554a37aef62b7066f1ea;p=timetracker.git Another try to fix tt_client_project_binds. --- diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 6d454f1f..db9ec58c 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.18.29.4588 | Copyright © Anuko | +  Anuko Time Tracker 1.18.29.4589 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/dbinstall.php b/dbinstall.php index 67fac318..c9dcc185 100644 --- a/dbinstall.php +++ b/dbinstall.php @@ -1039,6 +1039,7 @@ if ($_POST) { setChange("UPDATE `tt_site_config` SET param_value = '1.18.24', modified = now() where param_name = 'version_db' and param_value = '1.18.23'"); setChange("ALTER TABLE `tt_groups` ADD COLUMN `description` varchar(255) default NULL after `name`"); setChange("UPDATE `tt_site_config` SET param_value = '1.18.26', modified = now() where param_name = 'version_db' and param_value = '1.18.24'"); + setChange("update `tt_client_project_binds` cpb inner join `tt_site_config` sc on (sc.param_name = 'version_db' and sc.param_value = '1.18.26') inner join `tt_clients` c on c.id = cpb.client_id set cpb.group_id = c.group_id, cpb.org_id = c.org_id where cpb.org_id is null"); } if ($_POST["cleanup"]) { diff --git a/expenses.php b/expenses.php index 882e520b..e459c37c 100644 --- a/expenses.php +++ b/expenses.php @@ -50,6 +50,7 @@ if (!$user->behalf_id && !$user->can('track_own_expenses') && !$user->adjustBeha header('Location: access_denied.php'); // Trying as self, but no right for self, and noone to work on behalf. exit(); } +// End of access checks. // Initialize and store date in session. $cl_date = $request->getParameter('date', @$_SESSION['date']);