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

jackietien pushed a commit to branch auth
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/auth by this push:
     new b3bc9ef28d3 fix rolet don't need to check
b3bc9ef28d3 is described below

commit b3bc9ef28d3052b250ed9d0f20febb44aaf911e0
Author: JackieTien97 <[email protected]>
AuthorDate: Mon Sep 4 14:21:41 2023 +0800

    fix rolet don't need to check
---
 .../java/org/apache/iotdb/commons/auth/role/BasicRoleManager.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/auth/role/BasicRoleManager.java
 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/auth/role/BasicRoleManager.java
index 06b7735d84f..0bc34bd683f 100644
--- 
a/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/auth/role/BasicRoleManager.java
+++ 
b/iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/auth/role/BasicRoleManager.java
@@ -89,7 +89,7 @@ public abstract class BasicRoleManager implements 
IRoleManager {
   @Override
   public boolean grantPrivilegeToRole(
       String rolename, PartialPath path, int privilegeId, boolean grantOpt) 
throws AuthException {
-    AuthUtils.validatePrivilege(path, privilegeId);
+    //    AuthUtils.validatePrivilege(path, privilegeId);
     lock.writeLock(rolename);
     try {
       Role role = getRole(rolename);
@@ -118,7 +118,7 @@ public abstract class BasicRoleManager implements 
IRoleManager {
   @Override
   public boolean revokePrivilegeFromRole(String rolename, PartialPath path, 
int privilegeId)
       throws AuthException {
-    AuthUtils.validatePrivilege(path, privilegeId);
+    //    AuthUtils.validatePrivilege(path, privilegeId);
     lock.writeLock(rolename);
     try {
       Role role = getRole(rolename);

Reply via email to