]> source.dussan.org Git - nextcloud-server.git/commit
fix: catch ManuallyLockedException and use app context 38044/head
authorMax <max@nextcloud.com>
Tue, 18 Apr 2023 07:58:21 +0000 (09:58 +0200)
committerMax <max@nextcloud.com>
Thu, 4 May 2023 07:41:27 +0000 (09:41 +0200)
commit7f2de58e4cc023c55680fb77fb881cecfde8b1f9
treeebe7c457bce4db55ebe30970e0c80bcd47a2577b
parentf133f0e3630caf40bf07fb98143fb89b31da0a84
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