Merge pull request #11568 from nextcloud/nmc/folderNewShareUpdatePermission

Fix: new folder/file share permission
This commit is contained in:
Andy Scherzinger 2023-07-10 21:44:20 +02:00 committed by GitHub
commit 62893533ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {