From cd4af5ca52788b7e920296e3736585e2c136ecd6 Mon Sep 17 00:00:00 2001 From: irenarindos Date: Fri, 26 Apr 2024 14:44:25 +0000 Subject: [PATCH] backport of commit a00d4770c4aa0306622806edaa41348a4ea4e44e --- internal/daemon/controller/handlers/scopes/scope_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/daemon/controller/handlers/scopes/scope_service.go b/internal/daemon/controller/handlers/scopes/scope_service.go index 736382ba1a..fd5d249da0 100644 --- a/internal/daemon/controller/handlers/scopes/scope_service.go +++ b/internal/daemon/controller/handlers/scopes/scope_service.go @@ -1124,7 +1124,7 @@ func newOutputOpts(ctx context.Context, item *iam.Scope, authResults auth.Verify authorizedActions := authResults.FetchActionSetForId(ctx, item.GetPublicId(), idActionsById(item.GetPublicId()), auth.WithResource(&res)).Strings() if len(authorizedActions) == 0 { - return nil, true, nil + return nil, false, nil } outputFields := authResults.FetchOutputFields(res, action.List).SelfOrDefaults(authResults.UserId)