mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 17:44:43 +03:00
5d4918b66b
* 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> |
||
---|---|---|
.. | ||
membership_controller.ex |