mirror of https://github.com/nextcloud/desktop
Bugfix. Files lock. Fix incorrect readonly state.
Signed-off-by: alex-z <blackslayer4@gmail.com>
This commit is contained in:
parent
e18ab96882
commit
47a605c654
|
@ -390,7 +390,7 @@ void OCC::SyncEngine::slotItemDiscovered(const OCC::SyncFileItemPtr &item)
|
|||
}
|
||||
|
||||
if (item->_type == CSyncEnums::ItemTypeVirtualFile) {
|
||||
if (item->_locked == SyncFileItem::LockStatus::LockedItem && (item->_lockOwnerType != SyncFileItem::LockOwnerType::UserLock || item->_lockOwnerId != account()->davUser())) {
|
||||
if (item->_locked == SyncFileItem::LockStatus::LockedItem && (item->_lockOwnerType != SyncFileItem::LockOwnerType::TokenLock || item->_lockOwnerId != account()->davUser())) {
|
||||
qCDebug(lcEngine()) << filePath << "file is locked: making it read only";
|
||||
FileSystem::setFileReadOnly(filePath, true);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue