From de9974c7bd93d7ca74cd1a84f40bde431b1c9abd Mon Sep 17 00:00:00 2001 From: anton-chekanov <54842564+anton-chekanov@users.noreply.github.com> Date: Wed, 27 Jan 2021 01:10:07 +0500 Subject: [PATCH] Add CREATE SHARE, IMPORT SHARE privileges to account grants (#416) --- pkg/resources/account_grant.go | 2 ++ pkg/resources/privileges.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pkg/resources/account_grant.go b/pkg/resources/account_grant.go index 7bb53fe414..c1dcd39634 100644 --- a/pkg/resources/account_grant.go +++ b/pkg/resources/account_grant.go @@ -17,6 +17,8 @@ var validAccountPrivileges = NewPrivilegeSet( privilegeMonitorExecution, privilegeExecuteTask, privilegeApplyMaskingPolicy, + privilegeCreateShare, + privilegeImportShare, ) var accountGrantSchema = map[string]*schema.Schema{ diff --git a/pkg/resources/privileges.go b/pkg/resources/privileges.go index 15f806399d..63d00929ce 100644 --- a/pkg/resources/privileges.go +++ b/pkg/resources/privileges.go @@ -37,6 +37,8 @@ const ( privilegeCreateMaterializedView Privilege = "CREATE MATERIALIZED VIEW" privilegeCreateTemporaryTable Privilege = "CREATE TEMPORARY TABLE" privilegeCreateMaskingPolicy Privilege = "CREATE MASKING POLICY" + privilegeCreateShare Privilege = "CREATE SHARE" + privilegeImportShare Privilege = "IMPORT SHARE" privilegeAddSearchOptimization Privilege = "ADD SEARCH OPTIMIZATION" privilegeApplyMaskingPolicy Privilege = "APPLY MASKING POLICY"