View Source Rolex (Rolex v0.1.1)

Documentation for Rolex.

Summary

Functions

Returns true if any of the given permissions meeting the conditions in opts are granted.

Returns true if any of the given permissions meeting the conditions in opts are granted.

Fetches from the database a list of all permissions granted to subject.

Functions

See Rolex.Control.deny/1.

See Rolex.Control.deny!/1.

Link to this function

deny_on(object, opts \\ [])

View Source

See Rolex.Control.deny_on/2.

Link to this function

deny_on!(object, opts \\ [])

View Source

See Rolex.Control.deny_on!/2.

Link to this function

deny_role(role, opts \\ [])

View Source

See Rolex.Control.deny_role/2.

Link to this function

deny_role!(role, opts \\ [])

View Source

See Rolex.Control.deny_role!/2.

Link to this function

deny_to(subject, opts \\ [])

View Source

See Rolex.Control.deny_to/2.

Link to this function

deny_to!(subject, opts \\ [])

View Source

See Rolex.Control.deny_to!/2.

See Rolex.Control.grant/1.

See Rolex.Control.grant!/1.

Link to this function

grant_on(object, opts \\ [])

View Source

See Rolex.Control.grant_on/2.

Link to this function

grant_on!(object, opts \\ [])

View Source

See Rolex.Control.grant_on!/2.

Link to this function

grant_role(role, opts \\ [])

View Source

See Rolex.Control.grant_role/2.

Link to this function

grant_role!(role, opts \\ [])

View Source

See Rolex.Control.grant_role!/2.

Link to this function

grant_to(subject, opts \\ [])

View Source

See Rolex.Control.grant_to/2.

Link to this function

grant_to!(subject, opts \\ [])

View Source

See Rolex.Control.grant_to!/2.

Link to this function

granted?(permissions, opts)

View Source

Returns true if any of the given permissions meeting the conditions in opts are granted.

Link to this function

granted_on?(permissions, noun, opts \\ [])

View Source
Link to this function

granted_role?(permissions, noun, opts \\ [])

View Source

Returns true if any of the given permissions meeting the conditions in opts are granted.

Link to this function

granted_to?(permissions, noun, opts \\ [])

View Source
Link to this function

list_roles_granted_on(list, object, opts \\ [])

View Source

See Rolex.Queryable.list_roles_granted_on/3.

Link to this function

list_roles_granted_to(list, subject, opts \\ [])

View Source

See Rolex.Queryable.list_roles_granted_to/3.

Link to this function

load_permissions_granted_to(subject)

View Source

Fetches from the database a list of all permissions granted to subject.

This list can subsequently be used for in-memory permission checks by e.g. granted_role?/3.

Link to this function

multi_deny(multi, opts \\ [])

View Source

See Rolex.Control.multi_deny/2.

Link to this function

multi_deny_on(multi, object, opts \\ [])

View Source

See Rolex.Control.multi_deny_on/3.

Link to this function

multi_deny_role(multi, role, opts \\ [])

View Source

See Rolex.Control.multi_deny_role/3.

Link to this function

multi_deny_to(multi, subject, opts \\ [])

View Source

See Rolex.Control.multi_deny_to/3.

Link to this function

multi_grant(multi, opts \\ [])

View Source

See Rolex.Control.multi_grant/2.

Link to this function

multi_grant_on(multi, object, opts \\ [])

View Source

See Rolex.Control.multi_grant_on/3.

Link to this function

multi_grant_role(multi, role, opts \\ [])

View Source

See Rolex.Control.multi_grant_role/3.

Link to this function

multi_grant_to(multi, subject, opts \\ [])

View Source

See Rolex.Control.multi_grant_to/3.

Link to this function

multi_revoke(multi, opts \\ [])

View Source

See Rolex.Control.multi_revoke/2.

Link to this function

multi_revoke_from(multi, subject, opts \\ [])

View Source

See Rolex.Control.multi_revoke_from/3.

Link to this function

multi_revoke_on(multi, object, opts \\ [])

View Source

See Rolex.Control.multi_revoke_on/3.

Link to this function

multi_revoke_role(multi, role, opts \\ [])

View Source

See Rolex.Control.multi_revoke_role/3.

See Rolex.Control.revoke/1.

See Rolex.Control.revoke!/1.

Link to this function

revoke_from(subject, opts \\ [])

View Source

See Rolex.Control.revoke_from/2.

Link to this function

revoke_from!(subject, opts \\ [])

View Source

See Rolex.Control.revoke_from!/2.

Link to this function

revoke_on(object, opts \\ [])

View Source

See Rolex.Control.revoke_on/2.

Link to this function

revoke_on!(object, opts \\ [])

View Source

See Rolex.Control.revoke_on!/2.

Link to this function

revoke_role(role, opts \\ [])

View Source

See Rolex.Control.revoke_role/2.

Link to this function

revoke_role!(role, opts \\ [])

View Source

See Rolex.Control.revoke_role!/2.

Link to this function

where_granted_on(query, opts \\ [])

View Source

See Rolex.Queryable.where_granted_on/2.

Link to this function

where_granted_to(query, opts \\ [])

View Source

See Rolex.Queryable.where_granted_to/2.