Files
metabuilder/packages/code_editor/permissions/roles.json
johndoe6345789 ee367920be Refactor permissions in various packages to standardize action names and resource types
- Updated action names from "moderate", "write", "configure", and "ban" to "manage", "update", and "execute" across multiple roles in the forum_forge, github_tools, irc_webchat, json_script_example, lua_test, media_center, nav_menu, package_validator, quick_guide, role_editor, schema_editor, screenshot_analyzer, smtp_config, social_hub, stats_grid, stream_cast, ui_auth, ui_footer, ui_header, ui_home, ui_intro, ui_level2, ui_level3, ui_level4, ui_level5, ui_level6, ui_login, ui_pages, and ui_permissions packages.

- Changed resource types from "content", "data", "ui", "config", and "external" to "custom", "entity", and "component" for better clarity and consistency.

- Adjusted actions in roles to reflect new naming conventions and improve readability.
2026-01-02 20:02:43 +00:00

54 lines
1.4 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/permissions.schema.json",
"schemaVersion": "1.0.0",
"package": "code_editor",
"description": "Code editor access permissions",
"permissions": [
{
"id": "editor.code.view",
"name": "View Code Editor",
"description": "View code in editor (read-only access)",
"resource": "code_editor",
"action": "read",
"scope": "global",
"minLevel": 5
},
{
"id": "editor.code.edit",
"name": "Edit Code",
"description": "Edit code in editor",
"resource": "code_editor",
"action": "update",
"scope": "global",
"minLevel": 5
},
{
"id": "editor.theme.apply",
"name": "Apply Editor Themes",
"description": "Apply and customize editor themes",
"resource": "code_editor",
"action": "manage",
"scope": "global",
"minLevel": 5
},
{
"id": "editor.lua.execute",
"name": "Execute Lua Code",
"description": "Execute Lua code in sandbox environment",
"resource": "code_editor",
"action": "execute",
"scope": "global",
"minLevel": 5
}
],
"resources": [
{
"id": "code_editor",
"name": "Code Editor",
"type": "component",
"description": "Code editor resources",
"actions": ["read", "update", "manage", "execute"]
}
]
}