analytics/priv
Vini Brasil d22c011aa3
Implement limits for team members (#3305)
* Refactor MembershipController.invite_member/2

This commit refactors the controller action used for creating new
invitations. It moves the code to Plausible.Sites.invite/4 and replaces
`ifs` and `cases` with `with`.

* Add team_member_limit to plan definition

* Create usage and limits functions for team members

* Apply team member limit when inviting new users

* Add team members to Usage & Limits section

* Change invite function to receive email address instead of %User{}

* Wrap invite function in a DB transaction

* Remove unnecessary joins from team member usage query

* Replace UNION ALL with UNION to remove duplicates
2023-09-04 09:55:07 -03:00
..
data_migrations/NumericIDs/sql Make self-hosted data migration easier (#2865) 2023-04-21 09:33:57 +02:00
ingest_repo Add revenue fields to events_v2 (#3018) 2023-06-12 18:12:41 +01:00
ref_inspector [Continued] Google Analytics import (#1753) 2022-03-10 15:04:59 -06:00
repo Remove Props FF (#3242) 2023-08-31 11:14:54 -03:00
tracker/js Remove static tracker files (#2116) 2022-10-11 12:19:28 +02:00
ua_inspector Bump ua_inspector/matomo db (#3263) 2023-08-14 16:03:12 +02:00
paddle.pem Initial commit 2019-09-02 12:29:19 +01:00
placeholder_favicon.ico Add fallback for favicon (#2279) 2022-09-28 08:55:46 -03:00
plans_v1.json Implement limits for team members (#3305) 2023-09-04 09:55:07 -03:00
plans_v2.json Implement limits for team members (#3305) 2023-09-04 09:55:07 -03:00
plans_v3.json Implement limits for team members (#3305) 2023-09-04 09:55:07 -03:00
referer_favicon_domains.json Additional pre-commit hooks (#1428) 2021-11-03 15:46:12 +01:00
sandbox_plans.json Implement limits for team members (#3305) 2023-09-04 09:55:07 -03:00
unlisted_plans_v1.json Implement limits for team members (#3305) 2023-09-04 09:55:07 -03:00
unlisted_plans_v2.json Implement limits for team members (#3305) 2023-09-04 09:55:07 -03:00