From e8a04b7ce1fdb31febca7894229247207369bc85 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 20 Feb 2023 17:00:44 +0100 Subject: [bugfix] Fix account roles (#1542) * Change account role from string to object * Update tests * small fixes + swagger docs --------- Co-authored-by: zowhoey <11893985+zowhoey@users.noreply.github.com> --- web/template/profile.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/template/profile.tmpl') diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl index e484bd618..d584676a6 100644 --- a/web/template/profile.tmpl +++ b/web/template/profile.tmpl @@ -34,7 +34,7 @@
@{{ .account.Username }}@{{ .instance.AccountDomain }}
{{- /* Only render account role if 1. it's present and 2. it's not equal to the standard 'user' role */ -}} - {{ if and (.account.Role) (ne .account.Role "user") }}
{{ .account.Role }}
{{ end }} + {{ if and (.account.Role) (ne .account.Role.Name "user") }}
{{ .account.Role.Name }}
{{ end }}
-- cgit v1.3