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

Commit

Permalink
Merge pull request #1204 from owncloud/allow-removing-space-expiratio…
Browse files Browse the repository at this point in the history
…n-date

Allow removing expiration dates from space shares
  • Loading branch information
kulmann authored Jan 26, 2023
2 parents d0337ec + bc74079 commit 5bd335a
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 5bd335a

Please sign in to comment.