diff --git a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c index fa59f56496..aa5e87e8b1 100644 --- a/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c +++ b/source/dnode/mgmt/mgmt_dnode/src/dmHandle.c @@ -360,12 +360,12 @@ int32_t dmProcessRetrieve(SDnodeMgmt *pMgmt, SRpcMsg *pMsg) { terrno = TSDB_CODE_INVALID_MSG; return -1; } - +#if 0 if (strcmp(retrieveReq.user, TSDB_DEFAULT_USER) != 0) { terrno = TSDB_CODE_MND_NO_RIGHTS; return -1; } - +#endif if (strcasecmp(retrieveReq.tb, TSDB_INS_TABLE_DNODE_VARIABLES)) { terrno = TSDB_CODE_INVALID_MSG; return -1; diff --git a/tests/script/tsim/user/privilege_sysinfo.sim b/tests/script/tsim/user/privilege_sysinfo.sim index cf87f63b8c..f193e375d9 100644 --- a/tests/script/tsim/user/privilege_sysinfo.sim +++ b/tests/script/tsim/user/privilege_sysinfo.sim @@ -236,7 +236,7 @@ sql show create table d2.stb2; sql show create table d2.ctb2; sql show create table d2.ntb2; sql show local variables; -sql_error show dnode 1 variables; +sql show dnode 1 variables; sql show variables; @@ -269,7 +269,7 @@ sql select * from information_schema.ins_grants_logs sql select * from information_schema.ins_machines sql select * from information_schema.ins_vgroups sql select * from information_schema.ins_configs -sql_error select * from information_schema.ins_dnode_variables +sql select * from information_schema.ins_dnode_variables print =============== check performance_schema of sysinfo 1 sql use performance_schema;