1.优化渠道管理中btn的权限问题

This commit is contained in:
2026-05-30 11:20:24 +08:00
parent e65c3474bd
commit 1f9b2c2663
4 changed files with 64 additions and 25 deletions

View File

@@ -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 users 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.