Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Allow removing expiration dates from space shares
Browse files Browse the repository at this point in the history
  • Loading branch information
JammingBen committed Jan 26, 2023
1 parent d0337ec commit bc74079
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Allow removing expiration dates from space shares

We've fixed a bug where removing expiration dates from space shares was not possible.

https://github.com/owncloud/owncloud-sdk/pull/1204
https://github.com/owncloud/web/pull/8320
4 changes: 4 additions & 0 deletions src/shareManagement.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ class Shares {

if (optionalParams) {
postData = { ...postData, ...this._getOptionalParams(optionalParams) }

if (optionalParams.expireDate !== undefined) {
postData.expireDate = optionalParams.expireDate
}
}

return this.helpers._makeOCSrequest('POST', this.helpers.OCS_SERVICE_SHARE, 'shares', postData)
Expand Down

0 comments on commit bc74079

Please sign in to comment.