Skip to content

How to limit nested relationships depending on permission #228

@aimeos

Description

@aimeos

For example, we would like to allow for all:

  • include=children.content

But allow this only for logged in users:

  • include=children.children

Can this be accomplished by conditional relationships? According to the docs, it seems that this only works for direct relations: https://laraveljsonapi.io/docs/1.0/resources/relationships.html#conditional-relationships

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions