A bit more progress on getting rid of canManageTeam.
[timetracker.git] / export.php
index fb0e756..7ccce33 100644 (file)
@@ -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();
 }
@@ -75,7 +75,7 @@ if ($request->isPost()) {
     exit;
   } else
     $err->add($i18n->getKey('error.sys'));
-} // POST
+} // isPost
 
 $smarty->assign('forms', array($form->getName()=>$form->toArray()));
 $smarty->assign('title', $i18n->getKey('title.export'));