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
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
..
controllers Allow admins to grant admin rights (#2216) 4 years ago
plugs Fix favicon requests 4 years ago
templates Fix timezone input (#2222) 4 years ago
views Embed improvements (#2148) 4 years ago
captcha.ex Fix improper pattern matching on Finch responses (#2181) 4 years ago
email.ex [Continued] Google Analytics import (#1753) 5 years ago
endpoint.ex Setup promex (#1999) 4 years ago
refinspector.ex [Continued] Google Analytics import (#1753) 5 years ago
remote_ip.ex Parse bunny header 5 years ago
router.ex Add API to retrieve site by domain (#1942) 5 years ago