View Source Permify.Permission (Permify v0.1.0)
Provides some functions to check the permissions.
Link to this section Summary
Functions
Check subject is authorized
Check subject is authorized
Expand relationships according to schema
Link to this section Types
@type action() :: binary()
@type check_req() :: %{ :action => action(), optional(:depth) => depth(), :entity => entity(), optional(:schema_version) => Permify.schema_version(), subject: subject() }
@type depth() :: non_neg_integer()
@type entity() :: Permify.Relationship.entity()
@type subject() :: Permify.Relationship.subject()
Link to this section Functions
@spec check(Permify.Client.t(), check_req()) :: any()
Check subject is authorized
@spec check?(Permify.Client.t(), check_req()) :: boolean()
Check subject is authorized
@spec expand(Permify.Client.t(), any()) :: any()
Expand relationships according to schema