analytics/test/plausible_web/controllers
Uku Taht 5d4918b66b
Allow admins to grant admin rights (#2216)
* Make sure admin can grant the admin role

* Use `site` and `current_user_role` from conn.assigns to avoid extra lookups

* Add some missing documentation

* Restrict owners in the `update_role` action

* Move @moduledoc to appropriate location

* Use Ecto.Enum to get role atoms

* Remove unused functionality

* Ensure that owners cannot lock themselves out

* Add question mark to `can_grant_role`

Co-authored-by: Adam Rutkowski <hq@mtod.org>

* Use strict short-circuit operator for booleans

Co-authored-by: Adam Rutkowski <hq@mtod.org>

Co-authored-by: Adam Rutkowski <hq@mtod.org>
2022-09-16 11:03:09 +03:00
..
api Ignore unknown country code (#2223) 2022-09-16 11:02:39 +03:00
CSVs Fix missing 'pageviews' column from 'pages.csv' (#1988) 2022-07-12 23:46:47 +03:00
site Allow admins to grant admin rights (#2216) 2022-09-16 11:03:09 +03:00
admin_auth_controller_test.exs Use GET instead of POST for logout 2021-03-31 16:49:05 +03:00
auth_controller_test.exs Auth updates 2022-08-10 10:37:37 +03:00
billing_controller_test.exs Redirect to correct change plan page for enterprise customers 2022-04-18 14:18:49 +03:00
invitation_controller_test.exs Allow ownership transfers 2022-08-11 13:16:46 +03:00
site_controller_test.exs List all Google Analytics views during import (#2184) 2022-09-08 21:02:17 +03:00
stats_controller_test.exs Respond with 400 when no auth supplied to shared link request 2022-09-05 11:15:09 +02:00
unsubscribe_controller_test.exs Add presence check when unsubscribing from email reports 2021-05-03 16:56:46 +03:00