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_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>
4 years ago
..
api add upper bound to limit parameter (#2226) 4 years ago
site Allow admins to grant admin rights (#2216) 4 years ago
auth_controller.ex Auth updates 4 years ago
billing_controller.ex Fix improper pattern matching on Finch responses (#2181) 4 years ago
helpers.ex Initial commit 7 years ago
invitation_controller.ex Allow admins to grant admin rights (#2216) 4 years ago
page_controller.ex Selhosted version Improvements and additional features (#209) 6 years ago
site_controller.ex List all Google Analytics views during import (#2184) 4 years ago
stats_controller.ex Respond with 400 when no auth supplied to shared link request 4 years ago
unsubscribe_controller.ex Add presence check when unsubscribing from email reports 6 years ago