mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 01:35:34 +08:00
Add conflict check for WOPI lock AssetSyncController [SCI-9758]
This commit is contained in:
parent
88abc9defe
commit
2dfd270df2
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class AssetSyncToken < ApplicationRecord
|
|||
end
|
||||
|
||||
def conflicts?(token)
|
||||
version_token != token
|
||||
asset.locked? || version_token != token
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue