fix(listing): 保留平台超管全量商品查看

平台超管通过权限通配符获得全租户查询标记;普通租户管理员仍按所属租户及分销站隔离。
This commit is contained in:
2026-11-21 15:24:51 +08:00
parent c22d6b749c
commit b4d058ef63
5 changed files with 43 additions and 3 deletions
@@ -111,6 +111,7 @@ func checkAnyPermission(c *gin.Context, rdb *redis.Client, permCodes ...string)
for _, code := range codes {
if code == "*" {
c.Request = c.Request.WithContext(tenancy.WithAdminAllTenantScope(c.Request.Context()))
return true
}
for _, target := range permCodes {