]> wagnertech.de Git - timetracker.git/blobdiff - expense_edit.php
Moving away from using the timestamp field.
[timetracker.git] / expense_edit.php
index f13c7919e0f92eae9028eecba743002d47361dbc..dbd14d96de806521ee14746d86bf454246bddca3 100644 (file)
@@ -33,7 +33,7 @@ import('DateAndTime');
 import('ttExpenseHelper');
 
 // Access check.
-if (!ttAccessCheck(right_data_entry) || !$user->isPluginEnabled('ex')) {
+if (!ttAccessAllowed('track_own_expenses') || !$user->isPluginEnabled('ex')) {
   header('Location: access_denied.php');
   exit();
 }