Skip to content

Commit

Permalink
docs: fix authorization doc and improve readability
Browse files Browse the repository at this point in the history
issue #4291
  • Loading branch information
deepakrkris committed Jan 6, 2020
1 parent 92c39d5 commit 7c02df4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/site/Loopback-component-authorization.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7c02df4

Please sign in to comment.