code_corps v0.0.1 CodeCorps.Policy.Organization View Source

Authorization policies for performing actions on Organization records

Link to this section Summary

Functions

Returns a boolean indicating if the specified user is allowed to create the organization specified by a map of attributes

Returns a boolean indicating if the specified user is allowed to update the specified organization

Link to this section Functions

Link to this function create?(user, map) View Source
create?(CodeCorps.User.t(), map()) :: boolean()

Returns a boolean indicating if the specified user is allowed to create the organization specified by a map of attributes.

Link to this function update?(user, organization, map) View Source
update?(CodeCorps.User.t(), CodeCorps.Organization.t(), map()) :: boolean()

Returns a boolean indicating if the specified user is allowed to update the specified organization.