Selaa lähdekoodia

denied upload file e2e (share ext)

Marino Faggiana 7 vuotta sitten
vanhempi
commit
b3e5d23128
2 muutettua tiedostoa jossa 6 lisäystä ja 1 poistoa
  1. 5 0
      Share/ShareViewController.m
  2. 1 1
      iOSClient/Main/CCMain.m

+ 5 - 0
Share/ShareViewController.m

@@ -173,6 +173,11 @@
 
 - (void)moveServerUrlTo:(NSString *)serverUrlTo title:(NSString *)title
 {
+    // DENIED e2e
+    if ([CCUtility isFolderEncrypted:serverUrlTo account:self.activeAccount]) {
+        return;
+    }
+    
     if (serverUrlTo)
         _serverUrl = serverUrlTo;
     

+ 1 - 1
iOSClient/Main/CCMain.m

@@ -2233,7 +2233,7 @@
 {
     [_queueSelector removeAllObjects];
     
-    // Verify
+    // DENIED e2e
     if ([CCUtility isFolderEncrypted:serverUrlTo account:app.activeAccount]) {
         
         [app messageNotification:@"_move_" description:@"Not possible move files to encrypted directory" visible:YES delay:k_dismissAfterSecond type:TWMessageBarMessageTypeInfo errorCode:0];