...
If this attribute is missing, "hidden": false
is used as a default.
permissions
This optional attribute defines who can see the form inside an app. If this attribute is missing, all users can see this form. Example:
Code Block | ||
---|---|---|
| ||
{
...
"permissions": {
"read": ["ROLE_DEVELOPER"]
}
} |
The attribute read
defines a list of permission strings the currently logged-in user must match at least one of. By default such a permission string is the name of a required role. In this example, the user must be assigned to ROLE_DEVELOPER in order to see this form inside the app.
Furthermore also PIPEFORCE URI prefixes are supported such as:
$uri:user:<username> = Logged-in user must have this username.
$uri:group:<groupname> = Logged-in user must be member of group with name <groupname>.
$uri:role:<rolename> = Logged-in user must have assigned this role (this is used by default also if no such prefix is used.)
schema
The schema
attribute defines a PIPEFORCE URI which is called in order to retrieve the Form schema for this form.
...