Skip to content

Commit 3868e8e

Browse files
committed
解决校验 CIRCLE 角色时没有算当前用户
1 parent 29129cf commit 3868e8e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

APIJSONORM/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>apijson.orm</groupId>
77
<artifactId>apijson-orm</artifactId>
8-
<version>4.7.2</version>
8+
<version>4.8.0</version>
99
<packaging>jar</packaging>
1010

1111
<name>APIJSONORM</name>

APIJSONORM/src/main/java/apijson/orm/AbstractVerifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ public boolean verifyAccess(SQLConfig config) throws Exception {
282282
//不能在Visitor内null -> [] ! 否则会导致某些查询加上不需要的条件!
283283
List<Object> list = visitor.getContactIdList() == null
284284
? new ArrayList<Object>() : new ArrayList<Object>(visitor.getContactIdList());
285-
if (role == CIRCLE) {
285+
if (CIRCLE.equals(role)) {
286286
list.add(visitorId);
287287
}
288288

0 commit comments

Comments
 (0)