ProcaWeb.Resolvers.Authorized (proca v3.0.2)
Absinthe middleware to mark authenticated API calls.
middleware Authorized
- checks if context has :user
middleware Authorized
- can?: perms, access: [:org | :campaign | :action_page, by: [:id, [name: :org_name]]]
Link to this section Summary
Link to this section Functions
Link to this function
call(resolution, opts)
Callback implementation for Absinthe.Middleware.call/2
.
Link to this function
get_by(query, atom, value)
Link to this function
get_staffer_for_resource(user, resource_type, args, list)
Link to this function
query_for(user, atom)
Link to this function
verify_access(resolution, user, arg3)
Link to this function