Skip to content

Commit

Permalink
[Obs AI Assistant] Add security configs to API
Browse files Browse the repository at this point in the history
  • Loading branch information
viduni94 committed Nov 22, 2024
1 parent 1832d13 commit b6f4cbe
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,10 @@ module.exports = {
}

if (
(callee.type === 'MemberExpression' &&
callee.object &&
callee.object.name === 'router' &&
routeMethods.includes(callee.property.name)) ||
(callee.type === 'Identifier' && callee.name === 'createObservabilityServerRoute')
callee.type === 'MemberExpression' &&
callee.object &&
callee.object.name === 'router' &&
routeMethods.includes(callee.property.name)
) {
if (process.env.MIGRATE_ENABLED_AUTHZ === 'false') {
maybeReportDisabledSecurityConfig(node, context, false);
Expand Down

0 comments on commit b6f4cbe

Please sign in to comment.