Fix being an administrator when using 3rd-party auth provider

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2022-04-28 11:43:05 +02:00
parent f997f573ba
commit c91e8f6bf3
2 changed files with 2 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ defmodule Mobilizon.Web.AuthView do
Tag.tag(:meta, name: "auth-refresh-token", content: refresh_token),
Tag.tag(:meta, name: "auth-user-id", content: user_id),
Tag.tag(:meta, name: "auth-user-email", content: user_email),
Tag.tag(:meta, name: "auth-user-role", content: user_role),
Tag.tag(:meta, name: "auth-user-role", content: String.upcase(to_string(user_role))),
Tag.tag(:meta, name: "auth-user-actor-id", content: user_actor_id)
]