From 7c02df42450260aab6fa589cd47ea1df91768837 Mon Sep 17 00:00:00 2001 From: DEEPAK RAJAMOHAN Date: Fri, 3 Jan 2020 23:36:55 +0530 Subject: [PATCH] docs: fix authorization doc and improve readability issue https://github.com/strongloop/loopback-next/issues/4291 --- docs/site/Loopback-component-authorization.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/site/Loopback-component-authorization.md b/docs/site/Loopback-component-authorization.md index 9ed0c57c1d8b..0c69865219ef 100644 --- a/docs/site/Loopback-component-authorization.md +++ b/docs/site/Loopback-component-authorization.md @@ -199,7 +199,7 @@ with `ADMIN` role, while authorization for remote method `hello()` is skipped by `@authorize.skip()`. ```ts -@authorize({allow: ['ADMIN']}) +@authorize({allowedRoles: ['ADMIN']}) export class MyController { @get('/number-of-views') numOfViews(): number {