Added post limit warning (#26793)
* Renamed user limit API to app limit API * Added post warning limit * Added tests * Fixed types * Renamed AppLimits to ServerLimits * Fixed tests and review fixes * Updated generated code * Updated server i18n * Fixed TestCreateUserOrGuest test * Exclude deleted posts from post count for liims * Reduced limits for ease of testing * Restored original limts
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4571c6e3a3
Коммит
b4a1b33d39
@@ -3637,7 +3637,7 @@ components:
|
||||
state:
|
||||
description: The current state of the installation
|
||||
type: string
|
||||
UserLimits:
|
||||
ServerLimits:
|
||||
type: object
|
||||
properties:
|
||||
maxUsersLimit:
|
||||
|
||||
@@ -1,25 +1,25 @@
|
||||
/api/v4/limits/users:
|
||||
/api/v4/limits/server:
|
||||
get:
|
||||
tags:
|
||||
- users
|
||||
summary: Gets the user limits for the server
|
||||
summary: Gets the server limits for the server
|
||||
description: >
|
||||
Gets the user limits for the server
|
||||
|
||||
Gets the server limits for the server
|
||||
|
||||
##### Permissions
|
||||
|
||||
|
||||
Requires `sysconsole_read_user_management_users`.
|
||||
|
||||
operationId: getUserLimits
|
||||
operationId: GetServerLimits
|
||||
responses:
|
||||
"200":
|
||||
description: User limits for server
|
||||
description: App limits for server
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: array
|
||||
items:
|
||||
$ref: "#/components/schemas/UserLimits"
|
||||
$ref: "#/components/schemas/ServerLimits"
|
||||
"400":
|
||||
$ref: "#/components/responses/BadRequest"
|
||||
"401":
|
||||
|
||||
Ссылка в новой задаче
Block a user