Skip to content

Commit 0170315

Browse files
authored
Merge pull request #1156 from hunhejj/patch-1
Do not inject the authorization checker service in GraphQL types
2 parents d416c0d + d45aca6 commit 0170315

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/security/fields-public-control.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ AnObject:
1717
type: "String!"
1818
privateData:
1919
type: "String"
20-
public: "@=service('security.authorization_checker').isGranted('ROLE_ADMIN')"
20+
public: "@=isGranted('ROLE_ADMIN')"
2121
```
2222
2323
## With Annotations

0 commit comments

Comments
 (0)