diff --git a/op/op.RemoveDocument.php b/op/op.RemoveDocument.php index 7240d7e21..afdcceb8b 100644 --- a/op/op.RemoveDocument.php +++ b/op/op.RemoveDocument.php @@ -30,10 +30,6 @@ 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 from a trusted request */ if(!checkFormKey('removedocument')) { diff --git a/op/op.RemoveDocumentLink.php b/op/op.RemoveDocumentLink.php index bd1a59867..d89c41bb2 100644 --- a/op/op.RemoveDocumentLink.php +++ b/op/op.RemoveDocumentLink.php @@ -72,5 +72,4 @@ if (!$document->removeDocumentLink($linkid)) { add_log_line("?documentid=".$documentid."&linkid=".$linkid); header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=links"); - ?>