Skip to content

Commit

Permalink
Merge pull request #20 from claucambra/bugfix/lock-owner
Browse files Browse the repository at this point in the history
Check lock ownership based on remote interface username
  • Loading branch information
claucambra authored Aug 2, 2024
2 parents a248c67 + 8b15f7e commit 3690760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/NextcloudFileProviderKit/Item/Item.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 3690760

Please sign in to comment.