mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-29 13:07:17 +00:00
remove wrong init of $accessop
This commit is contained in:
parent
87308a3c21
commit
0a38435a2d
|
@ -70,9 +70,6 @@ if (!is_object($subworkflow)) {
|
|||
|
||||
$folder = $document->getFolder();
|
||||
|
||||
/* Create object for checking access to certain operations */
|
||||
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
||||
|
||||
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
|
||||
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user));
|
||||
if($view) {
|
||||
|
|
|
@ -43,7 +43,6 @@ if (!is_object($document)) {
|
|||
$view->exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id"));
|
||||
}
|
||||
|
||||
$accessop = new SeedDMS_AccessOperation($dms, $document, $user, $settings);
|
||||
$folder = $document->getFolder();
|
||||
|
||||
if ($document->getAccessMode($user) < M_READ || !$document->getLatestContent()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user