Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add user settings capability #2189

Merged
merged 1 commit into from
Oct 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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