mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
fix access check
This commit is contained in:
parent
d8e0ba840d
commit
b8fc40f60f
|
@ -63,7 +63,7 @@ if ($latestContent->getVersion()!=$version) {
|
|||
$accessop = new SeedDMS_AccessOperation($dms, $user, $settings);
|
||||
|
||||
// verify if document maybe revised
|
||||
if (!$document->mayRevise()){
|
||||
if (!$accessop->mayRevise($document)){
|
||||
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("access_denied"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user