X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=export.php;h=7ccce33088e4196265119874a48a9ae2d26897d0;hb=585ffedd49344ba7f2cd4873f76f6ac71360a55c;hp=5893d80db459cd9fb696f64171d2384935d25467;hpb=a7ba11adfecf6cb906749efe5abce688363aef07;p=timetracker.git diff --git a/export.php b/export.php index 5893d80d..7ccce330 100644 --- a/export.php +++ b/export.php @@ -31,7 +31,7 @@ import('ttExportHelper'); import('form.Form'); // Access check. -if (!ttAccessCheck(right_export_team)) { +if (!ttAccessAllowed('export_data')) { header('Location: access_denied.php'); exit(); } @@ -74,8 +74,8 @@ if ($request->isPost()) { } exit; } else - $errors->add($i18n->getKey('error.sys')); -} // POST + $err->add($i18n->getKey('error.sys')); +} // isPost $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('title', $i18n->getKey('title.export'));