From 73be8c8a32357c7aa37a337ae7057a8648d0210b Mon Sep 17 00:00:00 2001 From: bcmmbaga Date: Thu, 26 Sep 2024 19:00:59 +0300 Subject: [PATCH] fix merge Signed-off-by: bcmmbaga --- management/server/policy.go | 2 +- management/server/posture_checks.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/management/server/policy.go b/management/server/policy.go index 232db41b8..e4569cb57 100644 --- a/management/server/policy.go +++ b/management/server/policy.go @@ -343,7 +343,7 @@ func (am *DefaultAccountManager) SavePolicy(ctx context.Context, accountID, user return err } - postureChecks, err := am.Store.GetAccountPostureChecks(ctx, accountID) + postureChecks, err := am.Store.GetAccountPostureChecks(ctx, LockingStrengthShare, accountID) if err != nil { return err } diff --git a/management/server/posture_checks.go b/management/server/posture_checks.go index 5b2a661cb..170b7c08b 100644 --- a/management/server/posture_checks.go +++ b/management/server/posture_checks.go @@ -142,7 +142,7 @@ func (am *DefaultAccountManager) ListPostureChecks(ctx context.Context, accountI // isPostureCheckLinkedToPolicy checks whether the posture check is linked to any account policy. func (am *DefaultAccountManager) isPostureCheckLinkedToPolicy(ctx context.Context, postureChecksID, accountID string) error { - policies, err := am.Store.GetAccountPolicies(ctx, accountID) + policies, err := am.Store.GetAccountPolicies(ctx, LockingStrengthShare, accountID) if err != nil { return err }