瀏覽代碼

#857 ( UI / UX )

marinofaggiana 6 年之前
父節點
當前提交
a6e0e2d62f
共有 1 個文件被更改,包括 6 次插入1 次删除
  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