瀏覽代碼

denied upload file e2e (share ext)

Marino Faggiana 7 年之前
父節點
當前提交
b3e5d23128
共有 2 個文件被更改,包括 6 次插入1 次删除
  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
 - (void)moveServerUrlTo:(NSString *)serverUrlTo title:(NSString *)title
 {
 {
+    // DENIED e2e
+    if ([CCUtility isFolderEncrypted:serverUrlTo account:self.activeAccount]) {
+        return;
+    }
+    
     if (serverUrlTo)
     if (serverUrlTo)
         _serverUrl = serverUrlTo;
         _serverUrl = serverUrlTo;
     
     

+ 1 - 1
iOSClient/Main/CCMain.m

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