feat: support uniq grant

This commit is contained in:
kailixu 2024-02-05 06:51:44 +08:00
parent 6098538162
commit 021247c45b
2 changed files with 3 additions and 4 deletions

View File

@ -32,8 +32,7 @@ extern "C" {
#define GRANT_ACTIVE_CODE "activeCode"
#define GRANT_FLAG_ALL (0x01)
#define GRANT_FLAG_AUDIT (0x02)
#define GRANT_FLAG_CSV (0x04)
#define GRANT_FLAG_VIEW (0x08)
#define GRANT_FLAG_VIEW (0x04)
typedef enum {
TSDB_GRANT_ALL,

View File

@ -66,8 +66,8 @@ typedef enum {
#define QUERY_RSP_POLICY_QUICK 1
#define QUERY_MSG_MASK_SHOW_REWRITE() (1 << 0)
#define QUERY_MSG_MASK_VIEW() (1 << 1)
#define QUERY_MSG_MASK_AUDIT() (1 << 2)
#define QUERY_MSG_MASK_AUDIT() (1 << 1)
#define QUERY_MSG_MASK_VIEW() (1 << 2)
#define TEST_SHOW_REWRITE_MASK(m) (((m)&QUERY_MSG_MASK_SHOW_REWRITE()) != 0)
#define TEST_VIEW_MASK(m) (((m)&QUERY_MSG_MASK_VIEW()) != 0)
#define TEST_AUDIT_MASK(m) (((m)&QUERY_MSG_MASK_AUDIT()) != 0)