Skip to content

Commit

Permalink
Merge pull request #11774 from nextcloud/updatePermissions
Browse files Browse the repository at this point in the history
After successful upload update permission to have correct resharing info
  • Loading branch information
AndyScherzinger committed Jul 4, 2023
2 parents 3511dc1 + d772fe5 commit d58edd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ public boolean isPowerSavingExclusionAvailable() {
getFileByDecryptedRemotePath(parentFolder.getDecryptedRemotePath() + uploadedFileName);

assertNotNull(uploadedFile.getRemoteId());
assertNotNull(uploadedFile.getPermissions());

if (localBehaviour == FileUploader.LOCAL_BEHAVIOUR_COPY ||
localBehaviour == FileUploader.LOCAL_BEHAVIOUR_MOVE) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1389,6 +1389,7 @@ private void updateOCFile(OCFile file, RemoteFile remoteFile) {
file.setModificationTimestampAtLastSyncForData(remoteFile.getModifiedTimestamp());
file.setEtag(remoteFile.getEtag());
file.setRemoteId(remoteFile.getRemoteId());
file.setPermissions(remoteFile.getPermissions());
}

public interface OnRenameListener {
Expand Down

0 comments on commit d58edd4

Please sign in to comment.