From 06fbe079a4e14e537115b5be40cad36f02b35b94 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sun, 3 May 2026 20:04:24 -0400 Subject: [PATCH] fix(scanner): use a syntectic admin user when no admin user is found Signed-off-by: Deluan --- core/auth/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/auth/auth.go b/core/auth/auth.go index a75111b35..7b3511bdf 100644 --- a/core/auth/auth.go +++ b/core/auth/auth.go @@ -100,7 +100,7 @@ func WithAdminUser(ctx context.Context, ds model.DataStore) context.Context { } else { log.Error(ctx, "No admin user found!", err) } - u = &model.User{} + u = &model.User{IsAdmin: true, UserName: "admin"} } ctx = request.WithUsername(ctx, u.UserName)