You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/plausible/billing
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
3 years ago
..
billing.ex Usage & Limits section (#3291) 3 years ago
enterprise_plan.ex Check site limit for enterprise customers 5 years ago
enterprise_plan_admin.ex Check site limit for enterprise customers 5 years ago
paddle_api.ex Automatically decode JSON payloads from HTTP (#2329) 4 years ago
plans.ex Implement limits for team members (#3305) 3 years ago
quota.ex Implement limits for team members (#3305) 3 years ago
site_locker.ex Refactor Plausible.Billing.Plans module (#3249) 3 years ago
subscription.ex Enable Dialyzer and Credo in CI (#2315) 4 years ago