Skip to content

Commit

Permalink
enhance capability struct to include share expiration
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas committed Jan 10, 2023
1 parent b8c74a3 commit 7e9b40b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/share-expiration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: Add expiration to user and group shares

Added expiration to user and group shares. When shares are accessed after expiration the share is automatically removed.

https://github.com/cs3org/reva/pull/3594
7 changes: 4 additions & 3 deletions internal/http/services/owncloud/ocs/data/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,10 @@ type CapabilitiesFilesSharingPublicExpireDate struct {

// CapabilitiesFilesSharingUser TODO document
type CapabilitiesFilesSharingUser struct {
SendMail ocsBool `json:"send_mail" xml:"send_mail" mapstructure:"send_mail"`
ProfilePicture ocsBool `json:"profile_picture" xml:"profile_picture" mapstructure:"profile_picture"`
Settings []*CapabilitiesUserSettings `json:"settings" xml:"settings" mapstructure:"settings"`
SendMail ocsBool `json:"send_mail" xml:"send_mail" mapstructure:"send_mail"`
ProfilePicture ocsBool `json:"profile_picture" xml:"profile_picture" mapstructure:"profile_picture"`
Settings []*CapabilitiesUserSettings `json:"settings" xml:"settings" mapstructure:"settings"`
ExpireDate *CapabilitiesFilesSharingPublicExpireDate `json:"expire_date" xml:"expire_date" mapstructure:"expire_date"`
}

// CapabilitiesUserSettings holds available user settings service information
Expand Down

0 comments on commit 7e9b40b

Please sign in to comment.