analytics/test
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
..
load Fix script path for k6 load test (#2068) 2022-07-29 09:00:50 -03:00
plausible Fix timezone input (#2222) 2022-09-14 09:58:42 -03:00
plausible_web Allow admins to grant admin rights (#2216) 2022-09-16 11:03:09 +03:00
support Refactor event struct creation function (#2098) 2022-08-16 14:43:10 +03:00
workers Mark more tests as async 2022-05-06 10:30:38 +03:00
test_helper.exs Add feature flag to block event ingest (#1991) 2022-07-06 12:25:40 +03:00