mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
unlock document if updated by admin or owner of document
This commit is contained in:
parent
27a7fb4cfc
commit
3b129502a0
|
@ -48,6 +48,14 @@ if($settings->_quota > 0) {
|
|||
}
|
||||
}
|
||||
|
||||
if ($document->isLocked()) {
|
||||
$lockingUser = $document->getLockingUser();
|
||||
if (($lockingUser->getID() != $user->getID()) && ($document->getAccessMode($user) != M_ALL)) {
|
||||
UI::exitError(getMLText("document_title", array("documentname" => htmlspecialchars($document->getName()))),getMLText("no_update_cause_locked"));
|
||||
}
|
||||
else $document->setLocked(false);
|
||||
}
|
||||
|
||||
if(isset($_POST["comment"]))
|
||||
$comment = $_POST["comment"];
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue
Block a user