add access check (still commented out)

This commit is contained in:
Uwe Steinmann 2016-03-04 16:02:59 +01:00
parent 64c0b37726
commit 1578b12cf9

View File

@ -29,6 +29,10 @@ include("../inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$controller = Controller::factory($tmp[1]);
//$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
//if (!$accessop->check_controller_access($controller, $_POST)) {
// UI::exitError(getMLText("document_title", array("documentname" => "")),getMLText("access_denied"));
//}
/* Check if the form data comes for a trusted request */
if(!checkFormKey('removedocument')) {