Skip to content

Commit e6859d6

Browse files
Merge pull request #3010 from tzengerink/remove-unecessary-the
docs(guards): remove unecessary the
2 parents 305d5fe + bbcd76e commit e6859d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/guards.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ Alternatively, instead of using the `Reflector#createDecorator` method, we could
183183

184184
#### Putting it all together
185185

186-
Let's now go back and tie this together with our `RolesGuard`. Currently, it simply returns `true` in all cases, allowing every request to proceed. We want to make the return value conditional based on the comparing the **roles assigned to the current user** to the actual roles required by the current route being processed. In order to access the route's role(s) (custom metadata), we'll use the `Reflector` helper class again, as follows:
186+
Let's now go back and tie this together with our `RolesGuard`. Currently, it simply returns `true` in all cases, allowing every request to proceed. We want to make the return value conditional based on comparing the **roles assigned to the current user** to the actual roles required by the current route being processed. In order to access the route's role(s) (custom metadata), we'll use the `Reflector` helper class again, as follows:
187187

188188
```typescript
189189
@@filename(roles.guard)

0 commit comments

Comments
 (0)