hal-api icon indicating copy to clipboard operation
hal-api copied to clipboard

Excluding links

Open 0xn3bs opened this issue 8 years ago • 4 comments

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 :)

0xn3bs avatar Apr 09 '16 23:04 0xn3bs