marinofaggiana il y a 5 ans
Parent
commit
a6e0e2d62f
1 fichiers modifiés avec 6 ajouts et 1 suppressions
  1. 6 1
      iOSClient/Share/CCShareOC.m

+ 6 - 1
iOSClient/Share/CCShareOC.m

@@ -295,7 +295,12 @@
                 
             if (item.shareType == shareTypeGroup) row.title = [item.shareWithDisplayName stringByAppendingString:NSLocalizedString(@"_user_is_group_", nil)];
             else row.title = item.shareWithDisplayName;
-                
+            
+            //If the initiator or the recipient is not the current user, show the list of sharees without any options to edit it.
+            if (![item.uidOwner isEqualToString:appDelegate.activeUserID]) {
+                row.disabled = @YES;
+            }
+            
             [section addFormRow:row];
                 
             // add users