Open
Conversation
The `_repository` field will only show up for users with at least one of content/edit, class/update or role/view. Can easily be extended to more granular items.
008290c to
b932c6f
Compare
added 3 commits
November 11, 2018 16:24
Allows to restrict which content types a user is allowed to see over graphql.
```
DomainGroupContent:
type: object
fields:
articles:
type: "[ArticleContent]"
public: '@=service("ezplatform_graphql.can_user").viewContentOfType("article")'
```
fixup! Custom graphql/content_type_view policy
b74c705 to
738ebf8
Compare
added 4 commits
November 11, 2018 18:41
If a relation list field is typed to one domain item, it is only visible if the user has permission for this type.
Returns the current user:
```
{
viewer { id login }
}
```
See doc/security.md Requires improvements.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Custom policies
Introduces custom policies for graphql, and applies them to limit public fields (non public fields aren't shown in the schema for the current user).
contentRestricts interaction with content, with a limitation by type. Applies to types fields inside domain content types groups.
Other
The
_repositoryfield will only show up for users with at least one of content/edit, class/update or role/view.TODO
content_type_viewtocontent_type{group}._types