Skip to content

Allow passing list of permissions modules #41

@tlvenn

Description

@tlvenn

Hi,

Maybe I missed this but it is possible to compose the setup of Permit by passing a list of permissions modules instead of just one ? Ideally I would like to have a permissions module/file for each context.

defmodule MyApp.Authorization do
  use Permit, permissions_modules: [MyApp.Accounts.Permissions, MyApp.Orders.Permissions, ... ]
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions