]> source.dussan.org Git - nextcloud-server.git/commit
fix: catch ManuallyLockedException and use app context 37787/head
authorMax <max@nextcloud.com>
Tue, 18 Apr 2023 07:58:21 +0000 (09:58 +0200)
committerMax <max@nextcloud.com>
Wed, 3 May 2023 07:52:36 +0000 (09:52 +0200)
commit337fc110ec76f5287bc8e27320d2cff1ab7710f8
tree534cde9862e5c714072e213efd7acc0bdd3bdaeb
parent8873960bcfd9df8433faa5754b65ae3f2e55c1c7
fix: catch ManuallyLockedException and use app context

The files_lock app may throw ManuallyLockedExceptions
when attempting to revert a file that is currently opened.
This would prevent the user from rolling back a opened file.

Text and Richdocuments handle changes of the file while editing.
Allow reverting files even when they are locked by these apps
and let the apps handle the conflict.

Signed-off-by: Max <max@nextcloud.com>
apps/files_versions/lib/Storage.php
apps/files_versions/lib/Versions/VersionManager.php