|
@@ -9,10 +9,10 @@
|
|
|
const ROLE_PERMISSIONS = {
|
|
const ROLE_PERMISSIONS = {
|
|
|
// 超管:全部权限
|
|
// 超管:全部权限
|
|
|
admin: ['*'],
|
|
admin: ['*'],
|
|
|
- // 运营:审核全量、活动全量、任务全量、家庭/商城/知识/测评只读
|
|
|
|
|
- operator: ['dashboard', 'audit:*', 'activity:*', 'task:*', 'assessment:read', 'family:read', 'commerce:read', 'articles:read', 'knowledge:read', 'plan:*'],
|
|
|
|
|
- // 财务:财务/退款/提现、订单只读、CF值、商城营销、业务管理
|
|
|
|
|
- finance: ['dashboard', 'finance:*', 'audit:withdraw', 'audit:refund', 'commerce:read', 'commerce:orders:read', 'biz:*', 'cf-value:*'],
|
|
|
|
|
|
|
+ // 运营:审核全量、活动全量、任务全量、家庭/商城/知识/测评只读、组织管理
|
|
|
|
|
+ operator: ['dashboard', 'audit:*', 'activity:*', 'task:*', 'assessment:read', 'family:read', 'commerce:read', 'articles:read', 'knowledge:read', 'plan:*', 'org:*'],
|
|
|
|
|
+ // 财务:财务/退款/提现、订单只读、CF值、商城营销、业务管理、组织管理
|
|
|
|
|
+ finance: ['dashboard', 'finance:*', 'audit:withdraw', 'audit:refund', 'commerce:read', 'commerce:orders:read', 'biz:*', 'cf-value:*', 'org:*'],
|
|
|
// 管家:家庭客服 + 规划师 + 营养师权限并集(getEffectivePermissions 中自动并入 teacher/nutritionist)
|
|
// 管家:家庭客服 + 规划师 + 营养师权限并集(getEffectivePermissions 中自动并入 teacher/nutritionist)
|
|
|
butler: ['dashboard', 'family:*', 'task:*', 'reward:*', 'service:*', 'growth:*', 'biz:*',
|
|
butler: ['dashboard', 'family:*', 'task:*', 'reward:*', 'service:*', 'growth:*', 'biz:*',
|
|
|
'assessment:dan', 'health:*', 'diet:*', 'report:audit', 'plan:*'],
|
|
'assessment:dan', 'health:*', 'diet:*', 'report:audit', 'plan:*'],
|