mirror of https://github.com/milvus-io/milvus.git
Support upsert api rbac (#24550)
Signed-off-by: lixinguo <xinguo.li@zilliz.com> Co-authored-by: lixinguo <xinguo.li@zilliz.com>pull/24585/head
parent
71f2012488
commit
bb62cf4e60
|
@ -111,6 +111,11 @@ func TestPrivilegeInterceptor(t *testing.T) {
|
|||
CollectionName: "col1",
|
||||
})
|
||||
assert.NotNil(t, err)
|
||||
_, err = PrivilegeInterceptor(ctx, &milvuspb.UpsertRequest{
|
||||
DbName: "db_test",
|
||||
CollectionName: "col1",
|
||||
})
|
||||
assert.NotNil(t, err)
|
||||
_, err = PrivilegeInterceptor(fooCtx, &milvuspb.GetLoadingProgressRequest{
|
||||
CollectionName: "col1",
|
||||
})
|
||||
|
|
|
@ -74,6 +74,7 @@ var (
|
|||
MetaStore2API(commonpb.ObjectPrivilege_PrivilegeCompaction.String()),
|
||||
MetaStore2API(commonpb.ObjectPrivilege_PrivilegeInsert.String()),
|
||||
MetaStore2API(commonpb.ObjectPrivilege_PrivilegeDelete.String()),
|
||||
MetaStore2API(commonpb.ObjectPrivilege_PrivilegeUpsert.String()),
|
||||
|
||||
MetaStore2API(commonpb.ObjectPrivilege_PrivilegeGetStatistics.String()),
|
||||
MetaStore2API(commonpb.ObjectPrivilege_PrivilegeCreateIndex.String()),
|
||||
|
|
Loading…
Reference in New Issue