View Source Bonfire.Boundaries.Grants (bonfire_umbrella v0.9.8-cooperation-beta.15)
A grant is part of an Acl
, and defines a permission (value
boolean on a verb
) for a subject
Summary
Functions
Edits or adds a grant to an Acl
Edits or adds grants to an Acl based on a role
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.
Functions
Edits or adds a grant to an Acl
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
Edits or adds grants to an Acl based on a role
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.