View Source Rolex (Rolex v0.5.2)

The main entry point for interacting with Rolex.

Summary

Functions

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

See Rolex.Check.granted?/2.

Link to this function

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

View Source

See Rolex.Check.granted_on?/3.

Link to this function

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

View Source

See Rolex.Check.granted_role?/3.

Link to this function

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

View Source

See Rolex.Check.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.

Link to this function

preload_permissions(ids, assoc)

View Source

See Rolex.Queryable.preload_permissions/2.

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

roles_granted(permissions, opts \\ [])

View Source

See Rolex.Check.roles_granted/2.

Link to this function

roles_granted_on(permissions, object, opts \\ [])

View Source

See Rolex.Check.roles_granted_on/3.

Link to this function

roles_granted_to(permissions, subject, opts \\ [])

View Source

See Rolex.Check.roles_granted_to/3.

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.