Skip to content

Commit

Permalink
Add CREATE SHARE, IMPORT SHARE privileges to account grants (#416)
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-chekanov authored Jan 26, 2021
1 parent be1c544 commit de9974c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/resources/account_grant.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ var validAccountPrivileges = NewPrivilegeSet(
privilegeMonitorExecution,
privilegeExecuteTask,
privilegeApplyMaskingPolicy,
privilegeCreateShare,
privilegeImportShare,
)

var accountGrantSchema = map[string]*schema.Schema{
Expand Down
2 changes: 2 additions & 0 deletions pkg/resources/privileges.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit de9974c

Please sign in to comment.