projects
/
pub
/
Android
/
ownCloud.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1254 from owncloud/droid-update
[pub/Android/ownCloud.git]
/
src
/
com
/
owncloud
/
android
/
operations
/
CreateShareWithShareeOperation.java
diff --git
a/src/com/owncloud/android/operations/CreateShareWithShareeOperation.java
b/src/com/owncloud/android/operations/CreateShareWithShareeOperation.java
index
9b71695
..
b19d6c2
100644
(file)
--- a/
src/com/owncloud/android/operations/CreateShareWithShareeOperation.java
+++ b/
src/com/owncloud/android/operations/CreateShareWithShareeOperation.java
@@
-38,9
+38,6
@@
import com.owncloud.android.operations.common.SyncOperation;
public class CreateShareWithShareeOperation extends SyncOperation {
public class CreateShareWithShareeOperation extends SyncOperation {
- private static final int READ_ONLY = 1;
- private static final int ALL_PRIVILEGES = 31;
-
protected FileDataStorageManager mStorageManager;
private String mPath;
protected FileDataStorageManager mStorageManager;
private String mPath;
@@
-80,7
+77,7
@@
public class CreateShareWithShareeOperation extends SyncOperation {
mShareeName,
false,
"",
mShareeName,
false,
"",
- ALL_PRIVILEGES
+ OCShare.DEFAULT_PERMISSION
);
operation.setGetShareDetails(true);
RemoteOperationResult result = operation.execute(client);
);
operation.setGetShareDetails(true);
RemoteOperationResult result = operation.execute(client);
@@
-104,8
+101,7
@@
public class CreateShareWithShareeOperation extends SyncOperation {
// Update DB with the response
share.setPath(mPath);
share.setIsFolder(mPath.endsWith(FileUtils.PATH_SEPARATOR));
// Update DB with the response
share.setPath(mPath);
share.setIsFolder(mPath.endsWith(FileUtils.PATH_SEPARATOR));
- share.setPermissions(READ_ONLY);
-
+
getStorageManager().saveShare(share);
// Update OCFile with data from share: ShareByLink and publicLink
getStorageManager().saveShare(share);
// Update OCFile with data from share: ShareByLink and publicLink