Skip to content

Commit 4115d33

Browse files
committed
Corrections/typos
1 parent 9dce47d commit 4115d33

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/6.x/extend/http.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ if (! Gate::check('activity-viewReports')) {
138138
Gate::authorize('view', $report);
139139
```
140140

141-
Unless another package has defined a simple gate, bare ability checks (like the first example) fall through to Craft permissions.
142-
In the second example, we’re authorize against a specific object.
141+
Unless another package has defined a simple gate with the exact name, bare ability checks (like the first example) fall through to Craft permissions.
142+
In the second example, we’re authorizing against a specific object.
143143
We do this internally, for elements: many related permissions determine whether a user can `save` an entry, so it doesn’t make sense to check against each of those specific permissions in each place an element might be saved.
144144
Instead, these complex or compound checks are bundled with a [policy](laravel:authorization#creating-policies):
145145

@@ -180,7 +180,7 @@ class ReportPolicy
180180
}
181181
```
182182

183-
[Register your policy class](authorization#manually-registering-policies) with Laravel’s gate system, specifying the resource it should be evaluated against:
183+
[Register your policy class](laravel:authorization#manually-registering-policies) with Laravel’s gate system, specifying the resource it should be evaluated against:
184184

185185
```php
186186
Gate::policy(Report::class, ReportPolicy::class);
@@ -202,7 +202,7 @@ Gate::before('saveEntries:a6dbf63e-89fb-4f17-9205-2e7469f0aa2a', function (User
202202
In a plugin, the UUID in this example would need to be looked up, dynamically.
203203
:::
204204

205-
In some situations, you may still need to resolve permissions directly via the user element:
205+
In some situations, you may still need to resolve permissions directly via a user element:
206206

207207
```php
208208
// Check against the current user:

0 commit comments

Comments
 (0)