]> wagnertech.de Git - timetracker.git/commitdiff
Itroduced a temporary define MANAGER_ONLY_TEAM_SETTINGS for issue #53.
authorNik Okuntseff <support@anuko.com>
Fri, 16 Feb 2018 19:52:44 +0000 (19:52 +0000)
committerNik Okuntseff <support@anuko.com>
Fri, 16 Feb 2018 19:52:44 +0000 (19:52 +0000)
WEB-INF/config.php.dist
WEB-INF/templates/footer.tpl
WEB-INF/templates/profile_edit.tpl

index bb1937937c2bedc8ddeda01a025f2505fb50bd20..8e9cf20f196d77f68c28e5a418d9d03240672952 100644 (file)
@@ -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
index 2eaf9b3dd806c62a175c1e0715251c3ed2a96743..a4bcc6d2a2b76e776cfe095e13eb40b92d3cf128 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.17.21.3997 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.17.22.3998 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index f7bb80640f192b07f913bb7655824fe9c2a09d6c..ce4a6bf203c4b2b2e2e55e8c1f6f1ed78a997932 100644 (file)
@@ -129,7 +129,7 @@ function handlePluginCheckboxes() {
             <td>{$i18n.label.required_fields}</td>
           </tr>
 
-{if $user->canManageTeam()}
+{if $user->isManager() || ($user->canManageTeam() && !defined(MANAGER_ONLY_TEAM_SETTINGS))}
           <tr>
             <td colspan="2">&nbsp;</td>
           </tr>