Skip to content

Commit

Permalink
Add user settings capability (#2189)
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter authored Oct 21, 2021
1 parent 852282c commit 87c920f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 7 additions & 0 deletions changelog/unreleased/user-setting-capability.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Enhancement: Add user setting capability

We've added a capability to communicate the existance of a user settings service to clients.

https://github.com/cs3org/reva/pull/2189
https://github.com/owncloud/ocis/pull/2655
https://github.com/owncloud/web/issues/5926
11 changes: 9 additions & 2 deletions internal/http/services/owncloud/ocs/data/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,15 @@ 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"`
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"`
}

// CapabilitiesUserSettings holds available user settings service information
type CapabilitiesUserSettings struct {
Enabled bool `json:"enabled" xml:"enabled" mapstructure:"enabled"`
Version string `json:"version" xml:"version" mapstructure:"version"`
}

// CapabilitiesFilesSharingUserEnumeration TODO document
Expand Down

0 comments on commit 87c920f

Please sign in to comment.