Skip to content

Commit fdd5fe2

Browse files
committed
clean
1 parent 8a2924e commit fdd5fe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/auth/entity/PrivilegeUnion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public PrivilegeUnion(List<? extends PartialPath> paths, PrivilegeType type) {
102102

103103
public PrivilegeUnion(PrivilegeType type, boolean grantOption, boolean forAny) {
104104
this.privilegeType = type;
105-
this.modelType = PrivilegeModelType.RELATIONAL;
105+
this.modelType = forAny ? PrivilegeModelType.RELATIONAL : PrivilegeModelType.SYSTEM;
106106
this.grantOption = grantOption;
107107
this.forAny = forAny;
108108
}

0 commit comments

Comments
 (0)