X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=mobile%2Fexpense_edit.php;h=8da55a1eb5632bc4373583b6273a0668ab66ba2d;hb=e02d7592b0556895e35f4d028939197c132f6b09;hp=7107e785181a9ac1ebccb67a3841af82d74fc752;hpb=fd0872d9e582113346fa1e93557f370286c5c9f2;p=timetracker.git diff --git a/mobile/expense_edit.php b/mobile/expense_edit.php index 7107e785..8da55a1e 100644 --- a/mobile/expense_edit.php +++ b/mobile/expense_edit.php @@ -32,11 +32,15 @@ import('ttTeamHelper'); import('DateAndTime'); import('ttExpenseHelper'); -// Access check. -if (!ttAccessAllowed('track_own_expenses') || !$user->isPluginEnabled('ex')) { +// Access checks. +if (!(ttAccessAllowed('track_own_expenses') || ttAccessAllowed('track_expenses'))) { header('Location: access_denied.php'); exit(); } +if (!$user->isPluginEnabled('ex')) { + header('Location: feature_disabled.php'); + exit(); +} $cl_id = $request->getParameter('id');