Noizu.Entity.ACL.Protocol protocol (NoizuLabs Entities v0.2.1)

ACL protocol is used to strip/removed fields context user does not have access to.

Summary

Types

t()

All the types that implement this protocol.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

restrict(for, entity, acl_settings, context, options)

@spec restrict(
  for :: term(),
  entity :: term(),
  settings :: term(),
  context :: term(),
  options :: term()
) :: {:ok, any()} | {:error, any()}