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 09:56:02 UTC

[iotdb] branch rel/0.13 updated: [IOTDB-2902] Handling user privileges for aligned timeseries related features (#5556) (#5567)

This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch rel/0.13
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/0.13 by this push:
     new d1abcc8772 [IOTDB-2902] Handling user privileges for aligned timeseries related features (#5556) (#5567)
d1abcc8772 is described below

commit d1abcc8772f9a8f84288a160039b81a7274df1e0
Author: Steve Yurong Su <ro...@apache.org>
AuthorDate: Sun Apr 17 17:55:56 2022 +0800

    [IOTDB-2902] Handling user privileges for aligned timeseries related features (#5556) (#5567)
    
    (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: