marinofaggiana преди 5 години
родител
ревизия
9dfa7853f5
променени са 4 файла, в които са добавени 5 реда и са изтрити 2 реда
  1. 1 1
      Cartfile
  2. 1 1
      Cartfile.resolved
  3. 2 0
      iOSClient/AppDelegate.m
  4. 1 0
      iOSClient/Supporting Files/en.lproj/Localizable.strings

+ 1 - 1
Cartfile

@@ -1,4 +1,4 @@
-github "nextcloud/ios-communication-library" "develop"
+github "nextcloud/ios-communication-library" "master"
 github "tilltue/TLPhotoPicker" "1.9.3"
 github "kishikawakatsumi/UICKeyChainStore" "v2.1.2"
 github "danielsaidi/Sheeeeeeeeet" "2.0.2"

+ 1 - 1
Cartfile.resolved

@@ -16,7 +16,7 @@ github "krzyzanowskim/OpenSSL" "1.0.218"
 github "malcommac/SwiftRichString" "3.0.3"
 github "marinofaggiana/AFNetworking" "2967678c3e0e98c9b8d7e06222ad12d1f49c26f2"
 github "marinofaggiana/FastScroll" "81967c2309d29bc2c330d422da612160a30bade8"
-github "nextcloud/ios-communication-library" "5a8760c4df477c2ed8b76a4b76e5d77aed4bb2d9"
+github "nextcloud/ios-communication-library" "2a1539fc4934ce41aec701659a7e5cacda67b37b"
 github "realm/realm-cocoa" "v3.17.3"
 github "rechsteiner/Parchment" "v1.7.0"
 github "tilltue/TLPhotoPicker" "1.9.3"

+ 2 - 0
iOSClient/AppDelegate.m

@@ -947,6 +947,8 @@ PKPushRegistry *pushRegistry;
     
     if ([tableDirectory.permissions containsString:@"CK"]) {
         (void)[[NCCreateMenuAdd alloc] initWithViewController:self.window.rootViewController view:[(UIButton *)sender superview]];
+    } else {
+        [self messageNotification:@"_warning_" description:@"_no_permission_add_file_" visible:YES delay:k_dismissAfterSecond type:TWMessageBarMessageTypeInfo errorCode:0];
     }
 }
 

+ 1 - 0
iOSClient/Supporting Files/en.lproj/Localizable.strings

@@ -111,6 +111,7 @@
 "_screen_"                  = "Screen";
 "_wipe_account_"            = "Account wiped from server";
 "_appconfig_view_title_"    = "Account configuration in progress…";
+"_no_permission_add_file_"  = "You don't have permission to add files";
 
 // App