You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by wa...@apache.org on 2022/08/31 02:38:54 UTC

[iotdb] branch master updated: [IOTDB-4280]no privilege when using benchmark create timeseries (#7177)

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

wangchao316 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 6462d20f4f [IOTDB-4280]no privilege when using benchmark create timeseries (#7177)
6462d20f4f is described below

commit 6462d20f4f3a2f05d826f6588de476a13ae30e03
Author: Yifu Zhou <ef...@outlook.com>
AuthorDate: Wed Aug 31 10:38:46 2022 +0800

    [IOTDB-4280]no privilege when using benchmark create timeseries (#7177)
    
    [IOTDB-4280]no privilege when using benchmark create timeseries (#7177)
---
 server/src/main/java/org/apache/iotdb/db/auth/AuthorityChecker.java | 3 +++
 1 file changed, 3 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 61cae04ce2..c2ab844409 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
@@ -205,11 +205,13 @@ public class AuthorityChecker {
       case REVOKE_USER_ROLE:
         return PrivilegeType.REVOKE_USER_ROLE.ordinal();
       case SET_STORAGE_GROUP:
+      case TTL:
         return PrivilegeType.SET_STORAGE_GROUP.ordinal();
       case DELETE_STORAGE_GROUP:
         return PrivilegeType.DELETE_STORAGE_GROUP.ordinal();
       case CREATE_TIMESERIES:
       case CREATE_ALIGNED_TIMESERIES:
+      case CREATE_MULTI_TIMESERIES:
         return PrivilegeType.CREATE_TIMESERIES.ordinal();
       case DELETE_TIMESERIES:
       case DELETE:
@@ -298,6 +300,7 @@ public class AuthorityChecker {
         return PrivilegeType.DELETE_STORAGE_GROUP.ordinal();
       case CREATE_TIMESERIES:
       case CREATE_ALIGNED_TIMESERIES:
+      case CREATE_MULTI_TIMESERIES:
         return PrivilegeType.CREATE_TIMESERIES.ordinal();
       case DELETE_TIMESERIES:
       case DELETE: