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/17 08:21:14 UTC

[iotdb] 01/01: [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 iotdb-2902-0.13
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 248652b0b7646a25fcf875c684c40716e9274343
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)
    
    (cherry picked from commit 8ed3f3ad5d46e2b822092a328a84b8d2a35bde1c)
---
 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 43b56826dd..6a144118bc 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
@@ -120,6 +120,7 @@ public class AuthorityChecker {
       case SET_STORAGE_GROUP:
         return PrivilegeType.SET_STORAGE_GROUP.ordinal();
       case CREATE_TIMESERIES:
+      case CREATE_ALIGNED_TIMESERIES:
         return PrivilegeType.CREATE_TIMESERIES.ordinal();
       case DELETE_TIMESERIES:
       case DELETE:
@@ -141,6 +142,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: