Skip to content

Commit 74637b0

Browse files
committed
Fixing 4.0 doc too
1 parent bca6b6a commit 74637b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

website/versioned_docs/version-4.0/fine-grained-security.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ You can use the `this` variable to access any (public) property / method of the
152152
```php
153153
class Post {
154154
/**
155-
* @Query
156-
* @Security("this.canAccess(post, user)")
155+
* @Field
156+
* @Security("this.canAccessBody(user)")
157157
*/
158-
public function getPost(Post $post): array
158+
public function getBody(): array
159159
{
160160
// ...
161161
}
162162

163-
public function canAccess(Post $post, User $user): bool
163+
public function canAccessBody(User $user): bool
164164
{
165165
// Some custom logic here
166166
}

0 commit comments

Comments
 (0)