mirror of
https://github.com/openai/codex.git
synced 2026-02-01 22:47:52 +00:00
Fixed merge issue
This commit is contained in:
@@ -120,8 +120,10 @@ impl CloudRequirementsService {
|
||||
|
||||
async fn fetch(&self) -> Option<ConfigRequirementsToml> {
|
||||
let auth = self.auth_manager.auth().await?;
|
||||
if !(auth.mode == AuthMode::ChatGPT
|
||||
&& auth.account_plan_type() == Some(PlanType::Enterprise))
|
||||
if !(matches!(
|
||||
auth.api_auth_mode(),
|
||||
AuthMode::ChatGPT | AuthMode::ChatgptAuthTokens
|
||||
) && auth.account_plan_type() == Some(PlanType::Enterprise))
|
||||
{
|
||||
return None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user