Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Effect - whether the policy denies or allows the action

  • Action - which action is this policy for. For example read, create, update, delete, etc.

  • Resources - the Plate functionality names that the policy is about. E.g. attachments, or content types. These functionality names are notated in PlateID format. Go to the Resources page to learn more.

  • Conditions - the conditions under which the policy takes effect. For example, the policy only takes effect if the site_id of the resource in question is equal to 1234.

Resources

...

Conditions

  • .

...

...

Variables

Inside conditions you can access two variables, which are records to call attributes on:

  • object, which translates to the object of the Resource type the user is trying to gain access to. The attributes that can be called on the object differ per Resource type. See the Resources page to find all of them.

  • subject, which is the current user trying to gain access. The attributes that can be called on the subject are id, name and email.

...

Policies are notated as JSON. Check out an example:

...