Fix remove role support

This commit is contained in:
Pay Gießelmann
2022-11-30 11:46:32 +01:00
committed by GitHub
parent 3cc006d4ce
commit e5573a9b29

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)
} }