access property in your Collection Config:
Config Options
Access Control is specific to the operation of the request. To add Access Control to a Collection, use theaccess property in your Collection Config:
Every function except
admin returns true, false, or a query that limits which documents the operation applies to.
Create
Returns a boolean which allows/denies access to thecreate request.
To add create Access Control to a Collection, use the create property in the Collection Config:
create function:
Read
Returns a boolean which allows/denies access to theread request.
To add read Access Control to a Collection, use the read property in the Collection Config:
read function:
Update
Returns a boolean which allows/denies access to theupdate request.
To add update Access Control to a Collection, use the update property in the Collection Config:
update function:
Delete
Similarly to the Update function, returns a boolean or a query constraint to limit which documents can be deleted by which users. To add delete Access Control to a Collection, use thedelete property in the Collection Config:
delete function:
Admin
If the Collection is used to access the Admin Panel, theAdmin Access Control function determines whether the currently logged-in user can access the admin UI.
To add Admin Access Control to a Collection, use the admin property in the Collection Config:
admin function:
Unlock
Determines which users can unlock other users who may be blocked from authenticating successfully due to failing too many login attempts. To add Unlock Access Control to a Collection, use theunlock property in the Collection Config:
unlock function:
Read Versions
If the Collection has Versions enabled, thereadVersions Access Control function determines whether or not the currently logged in user can access the version history of a Document.
To add Read Versions Access Control to a Collection, use the readVersions property in the Collection Config:
readVersions function: