mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-26 14:41:02 +03:00
- OutputDir now accepts config root dir — creates Roles/ subdirectory - Back-compat: if OutputDir ends with "Roles", uses it as-is - Configuration.xml lookup adjusted accordingly - Updated SKILL.md, PS1, PY scripts (v1.3) - Updated test cases and snapshots for new Roles/ path Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
54 lines
1.4 KiB
JSON
54 lines
1.4 KiB
JSON
{
|
|
"name": "Роль с RLS ограничениями",
|
|
"preRun": [
|
|
{
|
|
"script": "meta-compile/scripts/meta-compile",
|
|
"input": {
|
|
"type": "Catalog",
|
|
"name": "Организации"
|
|
},
|
|
"args": {
|
|
"-JsonPath": "{inputFile}",
|
|
"-OutputDir": "{workDir}"
|
|
}
|
|
},
|
|
{
|
|
"script": "meta-compile/scripts/meta-compile",
|
|
"input": {
|
|
"type": "Document",
|
|
"name": "РеализацияТоваровУслуг"
|
|
},
|
|
"args": {
|
|
"-JsonPath": "{inputFile}",
|
|
"-OutputDir": "{workDir}"
|
|
}
|
|
}
|
|
],
|
|
"input": {
|
|
"name": "ЧтениеДокументовПоОрганизации",
|
|
"synonym": "Чтение документов (ограничение по организации)",
|
|
"objects": [
|
|
"Catalog.Организации: @view",
|
|
{
|
|
"name": "Document.РеализацияТоваровУслуг",
|
|
"preset": "view",
|
|
"rls": {
|
|
"Read": "#ДляОбъекта(\"\")"
|
|
}
|
|
}
|
|
],
|
|
"templates": [
|
|
{
|
|
"name": "ДляОбъекта(Модификатор)",
|
|
"condition": "ГДЕ Организация = &ТекущаяОрганизация"
|
|
}
|
|
]
|
|
},
|
|
"expect": {
|
|
"files": [
|
|
"Roles/ЧтениеДокументовПоОрганизации.xml",
|
|
"Roles/ЧтениеДокументовПоОрганизации/Ext/Rights.xml"
|
|
]
|
|
}
|
|
}
|