Skip to content

Commit

Permalink
Update x-pack/plugins/reporting/server/routes/deprecations.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Dokolin <dokmic@gmail.com>
  • Loading branch information
jloleysens and dokmic committed Aug 20, 2021
1 parent e726a92 commit 982ed39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/plugins/reporting/server/routes/deprecations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const registerDeprecationsRoutes = (reporting: ReportingCore, logger: Log
const authzWrapper = <P, Q, B>(handler: RequestHandler<P, Q, B>): RequestHandler<P, Q, B> => {
return async (ctx, req, res) => {
const { security } = reporting.getPluginSetupDeps();
if (!security || !security.license.isEnabled()) {
if (!security?.license.isEnabled()) {
return handler(ctx, req, res);
}

Expand Down

0 comments on commit 982ed39

Please sign in to comment.