I'm trying to have certain relationships/fields added to the api response based on whether the user authenticated user has admin permissions or not.
I have that part figured out, but I can't seem to find any way to introduce new relations/fields based on a simple conditional (if admin -> also include these fields and relationships)
Is there such a thing in CRNK?
Aucun commentaire:
Enregistrer un commentaire