Access control & CRUD actions

Table of contents

  1. Create
  2. Edit
    1. 1. In List Item Menus
    2. 2. On Detail / Pop-up Pages
  3. Delete
    1. Related Topics

Access control defines which actions your users can perform on data records. Doypp provides granular, visual control over standard CRUD (Create, Read, Update, Delete) operations at both the page and view level.

By configuring access controls, you can tailor identical views for different user roles—for example, giving all users read access while reserving creation and deletion for authorized staff.


Create

Enabling the Create permission on a list view provides a mechanism for users to submit new records.

When enabled:

  1. Doypp automatically places a ”+” (New) button in the view’s action header or floating action bar.
  2. Tapping the button launches an auto-generated input form populated with all non-protected fields configured on the model.
  3. Once submitted, the new record is saved and immediately reflected in the active list.

Example: Enabling creation on a post list view:

Step 1: Enable create in view settings
Step 2: Tap the "+" action button
Step 3: Submit the creation form

Edit

The Edit permission allows users to modify existing records. You can enable editing in two primary locations:

1. In List Item Menus

Enabling edit on a list view adds an “Edit” option to each card’s contextual overflow menu:

Step 1: Enable edit in list view settings
Step 2: Select "Edit" from the item menu
Step 3: Update details and save changes

2. On Detail / Pop-up Pages

If a detail page is linked to a record, enabling edit places a dedicated pencil icon directly in the page header:

Step 1: Enable edit in detail view settings
Step 2: Tap the edit icon in the header
Step 3: Modify fields and save

Delete

The Delete permission enables users to permanently remove a data record.

To safeguard against accidental data loss:

  • Confirmation Prompt: When a user taps “Delete”, Doypp automatically displays a confirmation modal requiring explicit verification before the record is purged.
  • Relational Integrity: Doypp automatically handles linked records according to your model’s relationship cascade policies.

[!IMPORTANT] Best Practice for Deletion Access: In collaborative environments, it is recommended to restrict Delete permissions to administrators or the original author of the record, preventing accidental or unauthorized data deletion.