Get users/group from Server, to fill in 'Share with' list
[pub/Android/ownCloud.git] / src / com / owncloud / android / files / FileOperationsHelper.java
index 495d7a3..d249c02 100644 (file)
@@ -259,6 +259,18 @@ public class FileOperationsHelper {
 
     }
 
+
+    /**
+     * @return 'True' if the server supports the Search Users API
+     */
+    public boolean isSearchUsersSupportedSupported() {
+        if (mFileActivity.getAccount() != null) {
+            OwnCloudVersion serverVersion = AccountUtils.getServerVersion(mFileActivity.getAccount());
+            return (serverVersion != null && serverVersion.isSearchUsersSupported());
+        }
+        return false;
+    }
+
     public void sendDownloadedFile(OCFile file) {
         if (file != null) {
             String storagePath = file.getStoragePath();