From 9afadaf6b4d3ea192021530cce4939226c7c310f Mon Sep 17 00:00:00 2001 From: Nik Okuntseff Date: Fri, 16 Feb 2018 19:52:44 +0000 Subject: [PATCH] Itroduced a temporary define MANAGER_ONLY_TEAM_SETTINGS for issue #53. --- WEB-INF/config.php.dist | 4 ++++ WEB-INF/templates/footer.tpl | 2 +- WEB-INF/templates/profile_edit.tpl | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/WEB-INF/config.php.dist b/WEB-INF/config.php.dist index bb193793..8e9cf20f 100644 --- a/WEB-INF/config.php.dist +++ b/WEB-INF/config.php.dist @@ -208,3 +208,7 @@ define('AUTH_MODULE', 'db'); // Height in pixels for the note input field in time.php. Defaults to 40. // define('NOTE_INPUT_HEIGHT', 100); + +// define('MANAGER_ONLY_TEAM_SETTINGS', true); // Note: temporary define, to be removed after introduction of role edits. + // Currently checked for "defined" only in profile_edit.tpl, meaning that false + // value here means the same thing. \ No newline at end of file diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 2eaf9b3d..a4bcc6d2 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
- -{if $user->canManageTeam()} +{if $user->isManager() || ($user->canManageTeam() && !defined(MANAGER_ONLY_TEAM_SETTINGS))} -- 2.20.1
 Anuko Time Tracker 1.17.21.3997 | Copyright © Anuko | +  Anuko Time Tracker 1.17.22.3998 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/profile_edit.tpl b/WEB-INF/templates/profile_edit.tpl index f7bb8064..ce4a6bf2 100644 --- a/WEB-INF/templates/profile_edit.tpl +++ b/WEB-INF/templates/profile_edit.tpl @@ -129,7 +129,7 @@ function handlePluginCheckboxes() { {$i18n.label.required_fields}