You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/2.essentials/4.usage.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,12 @@ Post::controlled()
13
13
->get();
14
14
```
15
15
16
-
::info
16
+
### Interactions with should
17
17
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
18
18
since you make a SQL query.
19
+
19
20
If you are on an index of a controller, the control might trigger twice, once for `viewAny` (Policy) and once for `view` (Query)
0 commit comments