Set who can read and change a model
Each model has its own access rules. Each rule names who may perform one action: See entries, Create, Edit, Delete or See hidden fields.
Before you start
- You need a WordPress account with the administrator role.
- You need Morphic Pro to set See hidden fields. Without it, that row is locked.
Steps
- Go to Models.
- Select the model you want to change.
- Open the Access tab.
- Next to Quick setup:, select Public website, Members only or Private. The preset changes the rules for See entries, Create, Edit and Delete.
- Optional: In the table, select or clear a check box to change one action for one group.
- Optional: To allow more people, open Advanced: allow by WordPress permission.
- Select Add permission.
- Search for the WordPress permission you need, and select it.
- Select Save changes.
Result
- With Public website, anyone can see the entries. People with the Editor role can create, edit and delete them.
- With Members only, logged-in users can see the entries. People with the Editor role can create, edit and delete them.
- With Private, only administrators can use the model.
The API & integration screen shows Public read next to a model that anonymous visitors can read. It shows Login needed to read next to any other model.