oas: [2/2] improve store OAS (#9035)
This commit is contained in:
@@ -69,7 +69,7 @@ class OasKindGenerator extends FunctionKindGenerator {
|
||||
requiresAuthentication: true,
|
||||
},
|
||||
{
|
||||
startsWith: "store/customers/me",
|
||||
startsWith: "store/customers",
|
||||
requiresAuthentication: true,
|
||||
},
|
||||
]
|
||||
@@ -779,7 +779,9 @@ class OasKindGenerator extends FunctionKindGenerator {
|
||||
oasPath.startsWith("admin")
|
||||
const isStoreAuthenticated = hasAuthenticationOverride
|
||||
? oasPath.startsWith("store")
|
||||
: !isAuthenticationDisabled && oasPath.startsWith("store")
|
||||
: !isAuthenticationDisabled &&
|
||||
hasAuthenticationOverride &&
|
||||
oasPath.startsWith("store")
|
||||
const isAuthenticated =
|
||||
isAdminAuthenticated || isStoreAuthenticated || hasAuthenticationOverride
|
||||
|
||||
|
||||
Reference in New Issue
Block a user