Improves validation in getRolesByName endpoint (#25215)

* Improves validation in getRolesByName endpoint

* Updates the max constant and fixes linter

* Adds a mechanism to split roles in chunks in the webapp client

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Miguel de la Cruz
2023-12-22 10:29:51 +01:00
коммит произвёл GitHub
родитель be24f108e1
Коммит 0e60f3d542
5 изменённых файлов: 45 добавлений и 1 удалений

Просмотреть файл

@@ -2682,6 +2682,10 @@
"id": "api.restricted_system_admin",
"translation": "This action is forbidden to a restricted system admin."
},
{
"id": "api.roles.get_multiple_by_name_too_many.request_error",
"translation": "Unable to get that many roles by name. Only {{.MaxNames}} roles can be requested at once."
},
{
"id": "api.roles.patch_roles.license.error",
"translation": "Your license does not support advanced permissions."