Служебные инструменты · main

Проверить полную замену прав модуля

main_site_access_m100_readЧтение

Проверить полную замену прав модуля.

Действия

В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.

Проверить полную замену прав модуля

access_module_group_rights_preview

Проверить полную замену прав модуля.

form
объект · обязательный параметр
module_id
строка
Схема параметров JSON
{
  "type": "object",
  "properties": {
    "form": {
      "type": "object",
      "properties": {
        "GROUPS": {
          "type": [
            "object",
            "array"
          ],
          "maxProperties": 1000,
          "maxItems": 1000,
          "propertyNames": {
            "pattern": "^(?:0|[1-9][0-9]{0,9}|[A-Za-z_][A-Za-z0-9_]{0,31})$"
          },
          "additionalProperties": {
            "type": "string",
            "maxLength": 128
          },
          "items": {
            "type": "string",
            "maxLength": 128
          }
        },
        "RIGHTS": {
          "type": [
            "object",
            "array"
          ],
          "maxProperties": 1000,
          "maxItems": 1000,
          "propertyNames": {
            "pattern": "^(?:0|[1-9][0-9]{0,9}|[A-Za-z_][A-Za-z0-9_]{0,31})$"
          },
          "additionalProperties": {
            "type": "string",
            "maxLength": 128
          },
          "items": {
            "type": "string",
            "maxLength": 128
          }
        },
        "SITES": {
          "type": [
            "object",
            "array"
          ],
          "maxProperties": 1000,
          "maxItems": 1000,
          "propertyNames": {
            "pattern": "^(?:0|[1-9][0-9]{0,9}|[A-Za-z_][A-Za-z0-9_]{0,31})$"
          },
          "additionalProperties": {
            "type": "string",
            "maxLength": 128
          },
          "items": {
            "type": "string",
            "maxLength": 128
          }
        }
      },
      "required": [
        "GROUPS"
      ],
      "additionalProperties": false
    },
    "module_id": {
      "type": "string",
      "enum": [
        "perfmon",
        "translate",
        "currency",
        "vote",
        "forum"
      ],
      "default": "perfmon"
    }
  },
  "required": [
    "form"
  ],
  "additionalProperties": false
}

Скачать исходное примечание