allow users to access a document which has been locked by herself

This commit is contained in:
Uwe Steinmann 2014-11-26 07:49:19 +01:00
parent 97d3a8bce3
commit 715410e437

View File

@ -1003,7 +1003,7 @@ class HTTP_WebDAV_Server_SeedDMS extends HTTP_WebDAV_Server
return false;
}
if($obj->isLocked()) {
if($obj->isLocked() && $this->user->getLogin() != $obj->getLockingUser()->getLogin()) {
$lockuser = $obj->getLockingUser();
if($this->logger)
$this->logger->log('checkLock: object is locked by '.$lockuser->getLogin(), PEAR_LOG_INFO);