Skip to content

Excluding links #21

@0xn3bs

Description

@0xn3bs

I have a use-case where some users have permissions to delete certain resources and others don't.

Because of this, I don't want to always generate a destroy link for a resource if I already know the user can't take that action.

Basically I'd like to exclude certain links based on various conditions. Is there a way to do this? getLinks allows me to add additional links but I don't see any obvious way to exclude certain routes from _links

Thanks again for the help, I'm really enjoying this package :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions