16 lines
486 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package host
import (
"context"
"hyapp/pkg/appcode"
)
const huwaaAppCode = "huwaa"
// roleRegionMatchRequired 只控制 Agency 角色邀请、Host 主动申请和 BD 邀请的区域匹配。
// Huwaa 的这些组织拓展允许跨区域但角色事实仍归属目标用户当前区域Agency 主动邀请 Host、币商列表和子币商关系不得复用该例外。
func roleRegionMatchRequired(ctx context.Context) bool {
return appcode.FromContext(ctx) != huwaaAppCode
}