From 2db7c75325dcaf28871dfd8aaa3956fa878272ab Mon Sep 17 00:00:00 2001 From: Rahmat Hidayat Date: Tue, 7 Feb 2023 15:17:57 +0700 Subject: [PATCH] chore(grant): set default owner to empty instead of "system" (#357) --- core/grant/service_test.go | 1 - domain/grant.go | 1 - 2 files changed, 2 deletions(-) diff --git a/core/grant/service_test.go b/core/grant/service_test.go index 06c0f3edf..ec0f44b3f 100644 --- a/core/grant/service_test.go +++ b/core/grant/service_test.go @@ -559,7 +559,6 @@ func (s *ServiceTestSuite) TestImportFromProvider() { Status: domain.GrantStatusActive, StatusInProvider: domain.GrantStatusActive, Source: domain.GrantSourceImport, - Owner: domain.SystemActorName, }, }, }, diff --git a/domain/grant.go b/domain/grant.go index 0f61ccec7..7de735562 100644 --- a/domain/grant.go +++ b/domain/grant.go @@ -124,7 +124,6 @@ func (ae AccessEntry) ToGrant(resource Resource) Grant { StatusInProvider: GrantStatusActive, AccountID: ae.AccountID, AccountType: ae.AccountType, - Owner: SystemActorName, Role: ae.Permission, Permissions: []string{ae.Permission}, Source: GrantSourceImport,