Give ALL_PRIVILEGES when create a Share with User/Group
authormasensio <masensio@solidgear.es>
Thu, 29 Oct 2015 10:01:16 +0000 (11:01 +0100)
committerDavid A. Velasco <dvelasco@solidgear.es>
Fri, 30 Oct 2015 15:54:34 +0000 (16:54 +0100)
src/com/owncloud/android/operations/CreateShareWithShareeOperation.java

index 861393c..9b71695 100644 (file)
@@ -39,6 +39,7 @@ import com.owncloud.android.operations.common.SyncOperation;
 public class CreateShareWithShareeOperation extends SyncOperation {
 
     private static final int READ_ONLY = 1;
+    private static final int ALL_PRIVILEGES = 31;
 
     protected FileDataStorageManager mStorageManager;
 
@@ -79,7 +80,7 @@ public class CreateShareWithShareeOperation extends SyncOperation {
                 mShareeName,
                 false,
                 "",
-                READ_ONLY
+                ALL_PRIVILEGES
         );
         operation.setGetShareDetails(true);
         RemoteOperationResult result = operation.execute(client);