From e5573a9b291d539dc0931cbe882f1040c27fda11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pay=20Gie=C3=9Felmann?= <20906873+giesselmann@users.noreply.github.com> Date: Wed, 30 Nov 2022 11:46:32 +0100 Subject: [PATCH] Fix remove role support --- internal/auth/users.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/auth/users.go b/internal/auth/users.go index fbdc08d..aea5eb3 100644 --- a/internal/auth/users.go +++ b/internal/auth/users.go @@ -143,7 +143,7 @@ func (auth *Authentication) RemoveRole(ctx context.Context, username string, rol return err } - if role != RoleAdmin && role != RoleApi && role != RoleUser { + if role != RoleAdmin && role != RoleApi && role != RoleUser && role != RoleSupport { return fmt.Errorf("invalid user role: %#v", role) }