mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
Merge pull request #11568 from nextcloud/nmc/folderNewShareUpdatePermission
Fix: new folder/file share permission
This commit is contained in:
commit
62893533ca
1 changed files with 3 additions and 0 deletions
|
@ -147,6 +147,9 @@ public class CreateShareWithShareeOperation extends SyncOperation {
|
|||
updateShareInfoOperation.setHideFileDownload(hideFileDownload);
|
||||
updateShareInfoOperation.setLabel(label);
|
||||
|
||||
//update permissions for external share (will otherwise default to read-only)
|
||||
updateShareInfoOperation.setPermissions(permissions);
|
||||
|
||||
//execute and save the result in database
|
||||
RemoteOperationResult updateShareInfoResult = updateShareInfoOperation.execute(client);
|
||||
if (updateShareInfoResult.isSuccess() && updateShareInfoResult.getData().size() > 0) {
|
||||
|
|
Loading…
Reference in a new issue