feat: add tenant-scoped rule and permission management
This commit is contained in:
@@ -26,12 +26,12 @@ class RbacServiceImpl(IRbacService):
|
||||
"/files",
|
||||
"/documents",
|
||||
"/rules",
|
||||
"/rule-groups",
|
||||
"/rules-files",
|
||||
"/settings",
|
||||
"/entry-modules",
|
||||
"/role-permissions",
|
||||
"/document-types",
|
||||
"/tenants",
|
||||
"/usage-stats",
|
||||
)
|
||||
|
||||
@@ -121,20 +121,6 @@ class RbacServiceImpl(IRbacService):
|
||||
"is_cache": True,
|
||||
"meta": {"group": "rules"},
|
||||
"children": [
|
||||
{
|
||||
"id": 1007,
|
||||
"route_path": "/rule-groups",
|
||||
"route_name": "rule-groups",
|
||||
"component": "rule-groups",
|
||||
"parent_id": 1006,
|
||||
"route_title": "评查点分组",
|
||||
"icon": "ri-folder-open-line",
|
||||
"sort_order": 1,
|
||||
"is_hidden": False,
|
||||
"is_cache": True,
|
||||
"meta": {"group": "rules"},
|
||||
"children": None,
|
||||
},
|
||||
{
|
||||
"id": 1008,
|
||||
"route_path": "/rules/list",
|
||||
@@ -265,13 +251,27 @@ class RbacServiceImpl(IRbacService):
|
||||
},
|
||||
{
|
||||
"id": 1017,
|
||||
"route_path": "/tenants",
|
||||
"route_name": "tenants",
|
||||
"component": "tenants",
|
||||
"parent_id": 1013,
|
||||
"route_title": "租户管理",
|
||||
"icon": "ri-building-line",
|
||||
"sort_order": 4,
|
||||
"is_hidden": False,
|
||||
"is_cache": True,
|
||||
"meta": {"group": "settings"},
|
||||
"children": None,
|
||||
},
|
||||
{
|
||||
"id": 1018,
|
||||
"route_path": "/usage-stats",
|
||||
"route_name": "usage-stats",
|
||||
"component": "usage-stats",
|
||||
"parent_id": 1013,
|
||||
"route_title": "系统使用统计",
|
||||
"icon": "ri-bar-chart-box-line",
|
||||
"sort_order": 4,
|
||||
"sort_order": 5,
|
||||
"is_hidden": False,
|
||||
"is_cache": True,
|
||||
"meta": {"group": "settings"},
|
||||
@@ -280,7 +280,7 @@ class RbacServiceImpl(IRbacService):
|
||||
],
|
||||
},
|
||||
{
|
||||
"id": 1018,
|
||||
"id": 1019,
|
||||
"route_path": "/cross-checking",
|
||||
"route_name": "cross-checking",
|
||||
"component": "cross-checking",
|
||||
@@ -394,20 +394,6 @@ class RbacServiceImpl(IRbacService):
|
||||
"is_cache": True,
|
||||
"meta": {"group": "rules"},
|
||||
"children": [
|
||||
{
|
||||
"id": 2006,
|
||||
"route_path": "/rule-groups",
|
||||
"route_name": "rule-groups",
|
||||
"component": "rule-groups",
|
||||
"parent_id": 2005,
|
||||
"route_title": "评查点分组",
|
||||
"icon": "ri-folder-open-line",
|
||||
"sort_order": 1,
|
||||
"is_hidden": False,
|
||||
"is_cache": True,
|
||||
"meta": {"group": "rules"},
|
||||
"children": None,
|
||||
},
|
||||
{
|
||||
"id": 2007,
|
||||
"route_path": "/rules/list",
|
||||
@@ -579,9 +565,9 @@ class RbacServiceImpl(IRbacService):
|
||||
"/entry-modules": ["entry_module:"],
|
||||
"/role-permissions": ["rbac:"],
|
||||
"/document-types": ["doc_type:"],
|
||||
"/tenants": ["rbac:tenants:"],
|
||||
"/usage-stats": ["usage_stats:"],
|
||||
"/rules": ["rules:", "evaluation_point:"],
|
||||
"/rule-groups": ["evaluation_group:", "rules:"],
|
||||
"/rules": ["rules:", "evaluation_point:", "evaluation_group:"],
|
||||
"/rules/list": ["rules:", "evaluation_point:"],
|
||||
"/rules-files": ["rules:"],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user