View Source Bonfire.Boundaries.Grants (bonfire v0.3.5-classic-beta.10)

a grant applies to a subject

Link to this section Summary

Functions

Lists the grants permitted to see.

Lists the grants we are the registered caretakers of that we are permitted to see. If any are created without permitting the user to see them, they will not be shown.

query for list_my

Link to this section Functions

Link to this function

changeset(grant \\ %Grant{}, attrs)

View Source
Link to this function

changeset(atom, attrs, opts)

View Source
Link to this function

grant(subject_id, acl_id, verb, value, opts \\ [])

View Source

Grant takes three parameters:

  • subject_id: who we are granting access to
  • acl_id: what ACL we're applying a grant to
  • verb: which verb/action
  • value: true, false, or nil

Lists the grants permitted to see.

Lists the grants we are the registered caretakers of that we are permitted to see. If any are created without permitting the user to see them, they will not be shown.

query for list_my

Link to this function

remove_subject_from_acl(subject, acls)

View Source
Link to this function

upsert_or_delete(attrs, opts)

View Source