From c2025b44b9840581b1cd619afae3a9cd7ab4e41a Mon Sep 17 00:00:00 2001 From: Sergey Smolnikov Date: Tue, 2 Apr 2024 11:21:41 +0200 Subject: [PATCH] Given access to events for user --- api/environments/environment_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/environments/environment_handler.go b/api/environments/environment_handler.go index b06b09c3..816c2a44 100644 --- a/api/environments/environment_handler.go +++ b/api/environments/environment_handler.go @@ -203,7 +203,7 @@ func (eh EnvironmentHandler) GetEnvironment(ctx context.Context, appName, envNam if err != nil { return nil, err } - eventList, err := kubequery.GetEventsForEnvironment(ctx, eh.accounts.ServiceAccount.Client, appName, envName) + eventList, err := kubequery.GetEventsForEnvironment(ctx, eh.accounts.UserAccount.Client, appName, envName) if err != nil { return nil, err }