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/site
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>
4 years ago
..
admin.ex CRM improvements (#1903) 5 years ago
custom_domain.ex Remove unused custom domain code 5 years ago
google_auth.ex Configure Google Search Console property 7 years ago
membership.ex Allow admins to grant admin rights (#2216) 4 years ago
monthly_report.ex Add and remove recipients for email reports (#28) 7 years ago
schema.ex Forget has_stats 5 years ago
shared_link.ex Add unique index to shared link name 6 years ago
spike_notification.ex Do not allow duplicate spike notification to be created 6 years ago
weekly_report.ex Add and remove recipients for email reports (#28) 7 years ago