resourcePermissions: resourcePermissions

View source: R/databases.R

resourcePermissionsR Documentation

resourcePermissions

Description

Helper method to create a list of permissions for a role or grant.

Usage

resourcePermissions(
  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,
  bulk_delete = FALSE,
  manage_collection_links = FALSE,
  manage_users = FALSE,
  manage_roles = FALSE,
  manage_reference_data = FALSE,
  manage_translations = FALSE,
  audit = FALSE,
  share_reports = FALSE,
  publish_reports = FALSE,
  reviewer_only = FALSE,
  discover = FALSE
)

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,
  bulk_delete = FALSE,
  manage_collection_links = FALSE,
  manage_users = FALSE,
  manage_roles = FALSE,
  manage_reference_data = FALSE,
  manage_translations = FALSE,
  audit = FALSE,
  share_reports = FALSE,
  publish_reports = FALSE,
  reviewer_only = FALSE,
  discover = FALSE
)

Arguments

view

View the resource, whether a form, folder, or database.

add_record

Add a record within a form contained by this folder or form.

edit_record

Edit a record's values within a form contained by this folder or form.

delete_record

Delete a record within this form.

export_records

Export Records from a form, folder or database.

lock_records

Add, modify, or remove locks on records.

add_resource

Create a new Resource (Form or Folder).

edit_resource

Edit a Resource's schema, structure, attributes or data.

delete_resource

Delete a Resource (Form or Folder).

bulk_delete

Delete records in bulk

manage_collection_links

Manage (open/close) collection links for the given form.

manage_users

Grant permissions to a user to this database, folder, or form.

manage_roles

Add, modify and delete roles.

manage_reference_data

Manage reference data.

manage_translations

add languages to a database, modify translations

audit

Access the Audit logs for a database (or a subset).

share_reports

Allow the user to share reports with other roles in the database.

publish_reports

Allows the user to publish reports.

reviewer_only

Grant add_record and edit_record permissions for fields in the "reviewer" security category

discover

Discover and display forms

Details

Each argument represents an operation at the level of a resource and 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.


bedatadriven/activityinfo-R documentation built on Dec. 21, 2024, 8:23 a.m.