Skip to content

How @Allow decorator works? #1462

Discussion options

You must be logged in to vote

Hi, this is a special permission which functionally is the same as "Public" but indicates that the resource should only be accessible to its owner. E.g. an Order in the Shop API should only be accessible to the customer who placed it. There is no way to enforce this since the concept of "ownership" cannot be encoded statically. So any resolver decorated with this permission needs to ensure that it includes the necessary logic to limit the response only to the owner of that resource.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ramkishore-yerubandi
Comment options

@michaelbromley
Comment options

@ramkishore-yerubandi
Comment options

Answer selected by ramkishore-yerubandi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants