After reading this article you will know:
- What model permissions are
- How to set model permissions
Model permissions determine what a user can do within a model. There are 5 types of permissions a user can have on a model. These are:
A user can view data in the model.
A user can export data from the model.
A user can create new data in the model.
A user can update existing data in the model.
A user can delete data from the model.
You can set these permissions for each role in your application on the model itself.
The permissions set for different roles
Instead of checkboxes you can also set the permissions using a filter or an expression. Click the button Use filter to create a filter. This way you can set a users permission to only be able to edit an record if a status on the record is equal to a specific value or to only view records of a specific type. You can also use the current user in the filter. This wil allow you to setup even deeper permissions on specific users by adding properties to the user model and check if the user has these.
More about permissions can be found here.