mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 06:14:59 +00:00
- 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.
54 lines
1.3 KiB
JSON
54 lines
1.3 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/permissions.schema.json",
|
|
"schemaVersion": "1.0.0",
|
|
"package": "stats_grid",
|
|
"description": "Stats grid access permissions",
|
|
"permissions": [
|
|
{
|
|
"id": "stats.grid.view",
|
|
"name": "View Stats Grid",
|
|
"description": "View statistics grids",
|
|
"resource": "stats_grid",
|
|
"action": "read",
|
|
"scope": "global",
|
|
"minLevel": 2
|
|
},
|
|
{
|
|
"id": "stats.grid.configure",
|
|
"name": "Configure Stats Grid",
|
|
"description": "Configure statistics grids layout and settings",
|
|
"resource": "stats_grid",
|
|
"action": "manage",
|
|
"scope": "global",
|
|
"minLevel": 3
|
|
},
|
|
{
|
|
"id": "stats.card.create",
|
|
"name": "Create Stat Cards",
|
|
"description": "Create custom stat cards",
|
|
"resource": "stats_grid",
|
|
"action": "create",
|
|
"scope": "global",
|
|
"minLevel": 3
|
|
},
|
|
{
|
|
"id": "stats.card.delete",
|
|
"name": "Delete Stat Cards",
|
|
"description": "Delete stat cards from grids",
|
|
"resource": "stats_grid",
|
|
"action": "delete",
|
|
"scope": "global",
|
|
"minLevel": 4
|
|
}
|
|
],
|
|
"resources": [
|
|
{
|
|
"id": "stats_grid",
|
|
"name": "Stats Grid",
|
|
"type": "component",
|
|
"description": "Statistics grid resources",
|
|
"actions": ["read", "manage", "create", "delete"]
|
|
}
|
|
]
|
|
}
|