Skip to content

Commit

Permalink
Add capabilities to indicate read-only attributes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Swärd committed Apr 14, 2023
1 parent 23bdfcd commit 9f5d2bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Add capabilities indicating if user attributes are read-only

This adds capabilities that indicates if a user attribute is read-only, and
by this lets a frontend show this to the user.

https://github.com/cs3org/reva/pull/3789
3 changes: 2 additions & 1 deletion internal/http/services/owncloud/ocs/data/capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ type CapabilitiesCore struct {

// CapabilitiesGraph holds the graph capabilities
type CapabilitiesGraph struct {
PersonalDataExport ocsBool `json:"personal-data-export" xml:"personal-data-export" mapstructure:"personal_data_export"`
PersonalDataExport ocsBool `json:"personal-data-export" xml:"personal-data-export" mapstructure:"personal_data_export"`
ReadOnlyAttributes []string `json:"read_only_attributes" xml:"read_only_attributes" mapstructure:"read_only_attributes"`
}

// Status holds basic status information
Expand Down

0 comments on commit 9f5d2bb

Please sign in to comment.