1.优化渠道管理中btn的权限问题
This commit is contained in:
@@ -24,13 +24,9 @@ List filters: **All / With balance / No balance / Enabled only / Disabled only**
|
||||
|
||||
`AdminChannelScopeService` applies to list and stats:
|
||||
|
||||
**Global read** (all channels) if any of:
|
||||
**Bound channel wins** (only those channels) if `admin.channel_id` > 0 and/or any role group has `channel_id` — even with `viewAllChannels`.
|
||||
|
||||
- Super admin (`*`)
|
||||
- No `admin_group.channel_id` bound for the user’s groups
|
||||
- Button permission `channel/viewAllChannels`
|
||||
|
||||
Otherwise: bound group channel IDs, or `admin.channel_id`, or empty.
|
||||
**Global read** only when: super admin, **or** no channel binding on account and all groups **and** `viewAllChannels`.
|
||||
|
||||
**Write** (add/edit/delete/manual settle DB) stays on **writable** channels only; `viewAllChannels` does not expand write scope.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user