defmodule Acl do @moduledoc """ Acl keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ use Application # See http://elixir-lang.org/docs/stable/elixir/Application.html # for more information on OTP Applications def start(_type, _args) do import Supervisor.Spec, warn: false children = [ # Define workers and child supervisors to be supervised supervisor(Acl.Repo, []) ] # See http://elixir-lang.org/docs/stable/elixir/Supervisor.html # for other strategies and supported options opts = [strategy: :one_for_one, name: ACL.Supervisor] Supervisor.start_link(children, opts) end def hasAccess(role, permission \\"read", res \\nil, action \\nil) do AclWeb.AclController.hasAccess(role, res, action, permission) end end