Skip to content

Commit

Permalink
access_control: list syntax fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lazka committed Dec 19, 2024
1 parent 198e820 commit a520537
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/frameworks/relay/admin/access_control.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,19 @@ Relay bundles that come with access control declare a predefined set of policies
The policy's name and info describe the action, and optionally the resource it grants (or denies) access to.

There are currently two types of policies:

* **Roles**
* **Resource Permissions**

Resource **Permissions** always define a permission granted on one concrete resource item (instance), e.g. `READ_DOCUMENT`, where **Roles** are
resource item independent. They can be defined for a resource class (e.g. `CREATE_DOCUMENTS`) or globally (e.g. `ROLE_ADMIN`).

The following variable can be accessed in all policy statements:

* ```user``` The authenticated API user (see [The User Object](#the-user-object)).

The following variable can be accessed in **Resource Permision** statements only:

* ```resource``` The requested resource (see [The Resource Object](#the-resource-object))

## Access Control Attributes
Expand Down

0 comments on commit a520537

Please sign in to comment.