mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM 55199 Limit User Preferences (#25579)
* limit size and number of preferences in updatePreferences * update unit tests * fix another location and add tests * update utility function to return an error * update unit tests * fix review comments * revert package-lock.json * more review mods * update number of preferences allowed * update unit tests for new limit * update name of config setting * Update server/public/model/utils.go Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com> * add check for error id * use existing utility function, remove model.ObjectFromJSON() * Update preference.go - remove blank line --------- Co-authored-by: Ben Schumacher <ben.schumacher@mattermost.com> Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
@@ -59,6 +59,8 @@
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Preference'
|
||||
minItems: 1
|
||||
maxItems: 100
|
||||
responses:
|
||||
"200":
|
||||
description: User preferences saved successful
|
||||
@@ -102,6 +104,8 @@
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Preference'
|
||||
minItems: 1
|
||||
maxItems: 100
|
||||
responses:
|
||||
"200":
|
||||
description: User preferences saved successful
|
||||
|
||||
Reference in New Issue
Block a user