Skip to content

Access Control RBAC - get record ID / get collection #389

Answered by jmikrut
ryanlanciaux asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @ryanlanciaux — I can give some insight here.

The id parameter is optional and only going to be present in some access control methods, in certain cases. For example, there is no id yet in create access control.

Also—you're seeing your access control function being called from the access operation, which goes through and calls all access control through all your collections and globals. But, while your access control functions are being called by the access operation, there will be no ID present there either.

The access operation is responsible for telling the admin UI what you can and can't do. You can hit it in your browser by going to /api/access to see what it looks like.

Also, in…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ryanlanciaux
Comment options

@jmikrut
Comment options

@ryanlanciaux
Comment options

Answer selected by ryanlanciaux
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