fix(listing): 保留平台超管全量商品查看
平台超管通过权限通配符获得全租户查询标记;普通租户管理员仍按所属租户及分销站隔离。
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user