User & Role based Items

Role based view permission on each item

Role based view permission is only available on multi items templates.

To make it work, you need only to have the fields whith specific names present in schema.json.

Example of schema and options:

{
  "type": "object",
  "properties": {
        "userroles": {
      "type": "array",
      "title": "Roles"
    }
  }
}
{
  "fields": {
    "userroles": {
      "type": "role2"
    }
  }
}

The items are automatically filters based on the roles of the current logedin user.

When you are in edit mode, all items are shown (items are not filtered).

Show only current user created items

This is available as a filter option in the Filter settings of multi item templates.