Helper method to create a list of permissions for a role or grant.
permissions( view = TRUE, add_record = FALSE, edit_record = FALSE, delete_record = FALSE, export_records = FALSE, lock_records = FALSE, add_resource = FALSE, edit_resource = FALSE, delete_resource = FALSE, manage_collection_links = FALSE, manage_users = FALSE, manage_roles = FALSE, manage_reference_data = FALSE, audit = FALSE, share_reports = FALSE, publish_reports = FALSE )
|View the resource, whether a form, folder, or database.|
|Add a record within a form contained by this folder or form|
|Edit a record's values within a form contained by this folder or form.|
|Delete a record within this form.|
|Export Records from a form, folder or database.|
|Add, modify, or remove locks on records.|
|Create a new Resource (Form or Folder)|
|Edit a Resource's schema, structure, attributes or data.|
|Delete a Resource (Form or Folder)|
|Manage (open/close) collection links for the given form|
|Grant permissions to a user to this database, folder, or form.|
|Add, modify and delete roles|
|Access the Audit logs for a database (or a subset)|
|Allow the user to share reports with other roles in the database.|
|Allows the user to publish reports.|
|The id of the form, subform, or folder.|
|Bulk record delete within this form|
Each argument may either be TRUE or FALSE.
The view, add_record, edit_record, and delete_record permissions may instead be a formula that conditions the permission on the values of the record.