Browse Source

add activeUser in metadataNet

Marino Faggiana 8 years ago
parent
commit
04d62669c2
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Picker/DocumentPickerViewController.swift

+ 3 - 2
Picker/DocumentPickerViewController.swift

@@ -118,13 +118,14 @@ class DocumentPickerViewController: UIDocumentPickerExtensionViewController, CCN
         
         let metadataNet = CCMetadataNet()
         
+        metadataNet.account = activeAccount
         metadataNet.action = actionReadFolder
         metadataNet.serverUrl = self.localServerUrl;
         metadataNet.selector = selectorReadFolder;
         metadataNet.date = nil;
         
-        let oc : OCnetworking = OCnetworking.init(delegate: self, metadataNet: metadataNet, withUser:activeUser , withPassword: activePassword, withUrl: activeUrl, withTypeCloud: typeCloud, oneByOne: true, activityIndicator: false)
-        networkingOperationQueue.addOperation(oc)
+        let ocNetworking : OCnetworking = OCnetworking.init(delegate: self, metadataNet: metadataNet, withUser: activeUser, withPassword: activePassword, withUrl: activeUrl, withTypeCloud: typeCloud, oneByOne: true, activityIndicator: false)
+        networkingOperationQueue.addOperation(ocNetworking)
         
         hud.visibleIndeterminateHud()
     }