mirror of
https://github.com/owncloud/ocis
synced 2026-04-26 01:35:25 +02:00
Make amount of users in patch configurable.
This PR changes the following: * Create an API config section for API configurables. * Add a setting `UserPatchLimit` that controls how many users can be changed in a PATCH request. * Use this setting in the API to limit the amount of users that can be changed.
This commit is contained in:
committed by
Ralf Haferkamp
parent
883d068b48
commit
49d71ea111
@@ -30,6 +30,9 @@ func DefaultConfig() *config.Config {
|
||||
Service: config.Service{
|
||||
Name: "graph",
|
||||
},
|
||||
API: config.API{
|
||||
UserPatchLimit: 20,
|
||||
},
|
||||
Reva: shared.DefaultRevaConfig(),
|
||||
Spaces: config.Spaces{
|
||||
WebDavBase: "https://localhost:9200",
|
||||
|
||||
Reference in New Issue
Block a user