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 bb19379..8e9cf20 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 2eaf9b3..a4bcc6d 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 f7bb806..ce4a6bf 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>