mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-06 08:06:50 +00:00
fix(scheduler): restore account_model ownership veto in shared eligibility gate
This commit is contained in:
1 parent
f323a68505
commit
ee8bb42afa
1 file changed
+5
@@ -457,6 +457,11 @@ func openAICompatibleAccountEligibilityFailureReasonBeforeProfit(ctx context.Con
|
||||
if account == nil {
|
||||
return "account_nil"
|
||||
}
|
||||
if source, ok := CompositeRouteSourceFromContext(ctx); ok && source == CompositeRouteSourceAccount {
|
||||
if publicModel, modelOK := RequestedPublicModelFromContext(ctx); modelOK && !CompositeAccountClaimsModel(account, publicModel) {
|
||||
return "account_model_not_owned"
|
||||
}
|
||||
}
|
||||
if !account.IsOpenAICompatible() || !openAISchedulingPlatformMatchesAccount(ctx, account, platform) {
|
||||
return "platform_mismatch"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user