spatie / mailcoach-support

Questions and support for Mailcoach
https://mailcoach.app
31 stars 2 forks source link

How to use with separate teams #260

Closed georgeboot closed 3 years ago

georgeboot commented 3 years ago

We're looking at using Mailcoach for our app. We have multiple teams and each team can only see their own things.

How can we setup Mailcoach so that users of team 1 can only see lists and campaigns created by team 1, and vice versa for team 2?

freekmurze commented 3 years ago

This is currently not supported by Mailcoach itself. You could solve it by adding adding team_id columns on the mailcoach tables and with a middleware add global scopes.

We might add this functionality out of the box in Mailcoach v4.