From: Claudio Cambra Date: Tue, 19 Mar 2024 11:38:56 +0000 (+0800) Subject: Fix letter used to identify shareability in sharetableviewdatasource X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~7^2~46^2~25 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=8745b813eca957623be45926d066d497ec04c00e;p=nextcloud-desktop.git Fix letter used to identify shareability in sharetableviewdatasource Signed-off-by: Claudio Cambra --- diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableViewDataSource.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableViewDataSource.swift index c55306093..a4184e180 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableViewDataSource.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareTableViewDataSource.swift @@ -92,7 +92,7 @@ class ShareTableViewDataSource: NSObject, NSTableViewDataSource, NSTableViewDele return } itemMetadata = await fetchItemMetadata(itemRelativePath: serverPathString) - guard itemMetadata?.permissions.contains("S") == true else { + guard itemMetadata?.permissions.contains("R") == true else { let errorMsg = "This file cannot be shared." Logger.sharesDataSource.warning("\(errorMsg)") uiDelegate?.showError(errorMsg)