]> wagnertech.de Git - timetracker.git/commitdiff
A bit more progress on redoing access checks.
authorNik Okuntseff <support@anuko.com>
Mon, 12 Mar 2018 15:25:50 +0000 (15:25 +0000)
committerNik Okuntseff <support@anuko.com>
Mon, 12 Mar 2018 15:25:50 +0000 (15:25 +0000)
WEB-INF/templates/footer.tpl
charts.php
client_add.php
client_delete.php
client_edit.php
clients.php

index db729137b72204b54372fb1ea71b31db284fe3c4..4d0147deb8f41f330236cb1a51639457d5eddb39 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.39.4061 | 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.39.4062 | 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 c76eddfa549b296d4b1807ed6886cd72908805c5..df38cce677c3cf6028bd425a3b67375543f08525 100644 (file)
@@ -38,7 +38,7 @@ import('ttUserHelper');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessCheck(right_view_charts) || !$user->isPluginEnabled('ch')) {
+if (!ttAccessAllowed('view_own_data') || !$user->isPluginEnabled('ch')) {
   header('Location: access_denied.php');
   exit();
 }
index d3ca5aa9e20631596958a5c5a5fa90d5b87d7ffc..8dbb0d86afba2f48c1e9c316df8358f93a474847 100644 (file)
@@ -32,7 +32,7 @@ import('ttClientHelper');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('cl')) {
+if (!ttAccessAllowed('manage_clients') || !$user->isPluginEnabled('cl')) {
   header('Location: access_denied.php');
   exit();
 }
index 767a919e9c0a7442239abf231c374b69691749e3..eae300500a111c8b0ab6ec337c5556cb0d51f917 100644 (file)
@@ -31,7 +31,7 @@ import('form.Form');
 import('ttClientHelper');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('cl')) {
+if (!ttAccessAllowed('manage_clients') || !$user->isPluginEnabled('cl')) {
   header('Location: access_denied.php');
   exit();
 }
index cf4d1541674d97aee9e61ecd8a660bdab9e87fc9..3099e8889e14eb893428e915b9aa952b52716414 100644 (file)
@@ -32,7 +32,7 @@ import('ttClientHelper');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('cl')) {
+if (!ttAccessAllowed('manage_clients') || !$user->isPluginEnabled('cl')) {
   header('Location: access_denied.php');
   exit();
 }
index 0a027b8bd1a5ad613d7bf498ddaefd9dfe0a89a6..f02d4b951c7fa558d2e714647b7e69eb17adbb52 100644 (file)
@@ -31,7 +31,7 @@ import('form.Form');
 import('ttTeamHelper');
 
 // Access check.
-if (!ttAccessCheck(right_manage_team) || !$user->isPluginEnabled('cl')) {
+if (!ttAccessAllowed('manage_clients') || !$user->isPluginEnabled('cl')) {
   header('Location: access_denied.php');
   exit();
 }