You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ro...@apache.org on 2022/04/16 04:21:20 UTC
[iotdb] branch master updated: [IOTDB-2902] Handling user privileges for aligned timeseries related features (#5556)
This is an automated email from the ASF dual-hosted git repository.
rong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 8ed3f3ad5d [IOTDB-2902] Handling user privileges for aligned timeseries related features (#5556)
8ed3f3ad5d is described below
commit 8ed3f3ad5d46e2b822092a328a84b8d2a35bde1c
Author: Steve Yurong Su <ro...@apache.org>
AuthorDate: Sat Apr 16 12:21:15 2022 +0800
[IOTDB-2902] Handling user privileges for aligned timeseries related features (#5556)
---
server/src/main/java/org/apache/iotdb/db/auth/AuthorityChecker.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/server/src/main/java/org/apache/iotdb/db/auth/AuthorityChecker.java b/server/src/main/java/org/apache/iotdb/db/auth/AuthorityChecker.java
index b8737269a1..3749e87d58 100644
--- a/server/src/main/java/org/apache/iotdb/db/auth/AuthorityChecker.java
+++ b/server/src/main/java/org/apache/iotdb/db/auth/AuthorityChecker.java
@@ -122,6 +122,7 @@ public class AuthorityChecker {
case DELETE_STORAGE_GROUP:
return PrivilegeType.DELETE_STORAGE_GROUP.ordinal();
case CREATE_TIMESERIES:
+ case CREATE_ALIGNED_TIMESERIES:
return PrivilegeType.CREATE_TIMESERIES.ordinal();
case DELETE_TIMESERIES:
case DELETE:
@@ -143,6 +144,9 @@ public class AuthorityChecker {
case LOAD_DATA:
case CREATE_INDEX:
case BATCH_INSERT:
+ case BATCH_INSERT_ONE_DEVICE:
+ case BATCH_INSERT_ROWS:
+ case MULTI_BATCH_INSERT:
return PrivilegeType.INSERT_TIMESERIES.ordinal();
case LIST_ROLE:
case LIST_ROLE_USERS: