Merge pull request #75 from giesselmann/fix_remove_role_support

Fix remove role support
This commit is contained in:
Jan Eitzinger 2022-11-30 14:49:56 +01:00 committed by GitHub
commit ded5cda6ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,7 +143,7 @@ func (auth *Authentication) RemoveRole(ctx context.Context, username string, rol
return err 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) return fmt.Errorf("invalid user role: %#v", role)
} }