diff --git a/Sources/NextcloudFileProviderKit/Item/Item.swift b/Sources/NextcloudFileProviderKit/Item/Item.swift index 9e28710..57de285 100644 --- a/Sources/NextcloudFileProviderKit/Item/Item.swift +++ b/Sources/NextcloudFileProviderKit/Item/Item.swift @@ -153,7 +153,7 @@ public class Item: NSObject, NSFileProviderItem { public var fileSystemFlags: NSFileProviderFileSystemFlags { if metadata.lock, - metadata.lockOwner != metadata.userId, + (metadata.lockOwnerType != 0 || metadata.lockOwner != remoteInterface.account.username), metadata.lockTimeOut ?? Date() > Date() { return [.userReadable]