From 3d674d7caf4562aa3f527faf7ea9dcc290fbfc2c Mon Sep 17 00:00:00 2001 From: shaoting-huang Date: Thu, 12 Dec 2024 11:33:29 +0800 Subject: [PATCH] add privilege group privilege into built-in privilege group Signed-off-by: shaoting-huang --- pkg/util/constant.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/util/constant.go b/pkg/util/constant.go index c762009d51fd9..916c5a17c67a6 100644 --- a/pkg/util/constant.go +++ b/pkg/util/constant.go @@ -363,6 +363,7 @@ var ( MetaStore2API(commonpb.ObjectPrivilege_PrivilegeSelectUser.String()), MetaStore2API(commonpb.ObjectPrivilege_PrivilegeDescribeResourceGroup.String()), MetaStore2API(commonpb.ObjectPrivilege_PrivilegeListResourceGroups.String()), + MetaStore2API(commonpb.ObjectPrivilege_PrivilegeListPrivilegeGroups.String()), } ClusterReadWritePrivilegeGroup = append(ClusterReadOnlyPrivilegeGroup, @@ -384,6 +385,9 @@ var ( MetaStore2API(commonpb.ObjectPrivilege_PrivilegeDropResourceGroup.String()), MetaStore2API(commonpb.ObjectPrivilege_PrivilegeUpdateUser.String()), MetaStore2API(commonpb.ObjectPrivilege_PrivilegeRenameCollection.String()), + MetaStore2API(commonpb.ObjectPrivilege_PrivilegeCreatePrivilegeGroup.String()), + MetaStore2API(commonpb.ObjectPrivilege_PrivilegeDropPrivilegeGroup.String()), + MetaStore2API(commonpb.ObjectPrivilege_PrivilegeOperatePrivilegeGroup.String()), ) )