analytics/lib
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
..
mix/tasks Fix geolocation subdivision pattern matching (#2063) 2022-07-28 15:59:39 +03:00
plausible Allow admins to grant admin rights (#2216) 2022-09-16 11:03:09 +03:00
plausible_web Allow admins to grant admin rights (#2216) 2022-09-16 11:03:09 +03:00
workers Perform calculations in SQL instead of app when creating sites (#2156) 2022-09-01 17:09:28 +03:00
oban_error_reporter.ex Add Custom telemetry for Plausible.Event.WriteBuffer, Plausible.Event.WriteBuffer and Cachex (#2095) 2022-08-12 09:50:18 +03:00
plausible_release.ex Self hosted improvements (#603) 2021-01-15 10:12:00 +02:00
plausible_web.ex Fix dark mode for GA import 2022-03-24 12:25:07 +02:00
plausible.ex Initial commit 2019-09-02 12:29:19 +01:00
sentry_filter.ex Filter out noisy exception from Sentry (#2058) 2022-07-28 15:17:47 +03:00