We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bca6b6a commit 74637b0Copy full SHA for 74637b0
website/versioned_docs/version-4.0/fine-grained-security.md
@@ -152,15 +152,15 @@ You can use the `this` variable to access any (public) property / method of the
152
```php
153
class Post {
154
/**
155
- * @Query
156
- * @Security("this.canAccess(post, user)")
+ * @Field
+ * @Security("this.canAccessBody(user)")
157
*/
158
- public function getPost(Post $post): array
+ public function getBody(): array
159
{
160
// ...
161
}
162
163
- public function canAccess(Post $post, User $user): bool
+ public function canAccessBody(User $user): bool
164
165
// Some custom logic here
166
0 commit comments