]> wagnertech.de Git - timetracker.git/blobdiff - expense_edit.php
Security fix for invoice view.
[timetracker.git] / expense_edit.php
index f13c7919e0f92eae9028eecba743002d47361dbc..3fd23591202d2c4e5bf275ca6ce4d254b856b17b 100644 (file)
@@ -33,7 +33,7 @@ import('DateAndTime');
 import('ttExpenseHelper');
 
 // Access check.
-if (!ttAccessCheck(right_data_entry) || !$user->isPluginEnabled('ex')) {
+if (!ttAccessAllowed('data_entry') || !$user->isPluginEnabled('ex')) {
   header('Location: access_denied.php');
   exit();
 }