Skip to content

Commit 53abdce

Browse files
committed
Update 4.usage.md
1 parent 0a672c6 commit 53abdce

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

content/2.essentials/4.usage.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ Post::controlled()
1313
->get();
1414
```
1515

16-
::info
16+
### Interactions with should
1717
When using the query, Access Control will always use the `view` method in the `should` function. This is because it considers you are trying to view models
1818
since you make a SQL query.
19+
1920
If you are on an index of a controller, the control might trigger twice, once for `viewAny` (Policy) and once for `view` (Query)
20-
::
21+
2122

2223
## Policies
2324

0 commit comments

Comments
 (0)