Marino Faggiana пре 1 година
родитељ
комит
4990135a6b
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      iOSClient/Data/NCManageDatabase+Share.swift
  2. 1 1
      iOSClient/Share/NCShareNetworking.swift

+ 1 - 0
iOSClient/Data/NCManageDatabase+Share.swift

@@ -260,6 +260,7 @@ extension NCManageDatabase {
         }
         }
     }
     }
 
 
+    // There is currently only one share attribute “download” from the scope “permissions”. This attribute is only valid for user and group shares, not for public link shares.
     func setAttibuteDownload(state: Bool) -> String? {
     func setAttibuteDownload(state: Bool) -> String? {
         if state {
         if state {
             return nil
             return nil

+ 1 - 1
iOSClient/Share/NCShareNetworking.swift

@@ -113,7 +113,7 @@ class NCShareNetworking: NSObject {
 
 
     func updateShare(option: NCTableShareable) {
     func updateShare(option: NCTableShareable) {
         NCActivityIndicator.shared.start(backgroundView: view)
         NCActivityIndicator.shared.start(backgroundView: view)
-        NextcloudKit.shared.updateShare(idShare: option.idShare, password: option.password, expireDate: option.expDateString, permissions: option.permissions, note: option.note, label: option.label, hideDownload: option.hideDownload) { account, share, data, error in
+        NextcloudKit.shared.updateShare(idShare: option.idShare, password: option.password, expireDate: option.expDateString, permissions: option.permissions, note: option.note, label: option.label, hideDownload: option.hideDownload, attributes: option.attributes) { account, share, data, error in
             NCActivityIndicator.shared.stop()
             NCActivityIndicator.shared.stop()
             if error == .success, let share = share {
             if error == .success, let share = share {
                 let home = NCUtilityFileSystem.shared.getHomeServer(urlBase: self.metadata.urlBase, userId: self.metadata.userId)
                 let home = NCUtilityFileSystem.shared.getHomeServer(urlBase: self.metadata.urlBase, userId: self.metadata.userId)