Skip to content

Commit

Permalink
fix(docs): fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
indiepopart committed Apr 8, 2024
1 parent ef72f07 commit c17f362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ security to protect access to resources using FGA:

```java
// Method body will only execute if the FGA check returns true. 403 otherwise.
@PreAuthorize("@fga.check('document', #docId, 'reader', 'user', 'authentication?.name')")
@PreAuthorize("@fga.check('document', #docId, 'reader', 'user', authentication?.name)")
public Document getDocument(@PathVariable String docId) {
return repository.findById(id);
}
Expand Down

0 comments on commit c17f362

Please sign in to comment.