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/auth
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
..
api_key.ex Add unique constraint to api keys (#2931) 4 years ago
api_key_admin.ex Remove IO.inspect 6 years ago
auth.ex [pg migration] Delete account with multiple subscriptions (#3220) 3 years ago
grace_period.ex Manually lock outgrown enterprise accounts (#2197) 4 years ago
invitation.ex Implement limits for team members (#3305) 3 years ago
password.ex Initial commit 7 years ago
token.ex Bookmarkable shared links (#752) 6 years ago
user.ex Manually lock outgrown enterprise accounts (#2197) 4 years ago
user_admin.ex [pg migration] Delete account with multiple subscriptions (#3220) 3 years ago