mirror of
https://gitee.com/dromara/Jpom.git
synced 2024-12-05 05:18:12 +08:00
fix 实现权限组拦截-兼容旧数据
This commit is contained in:
parent
16792df9af
commit
d20b59c62e
@ -182,6 +182,8 @@ public class UserBindWorkspaceService extends BaseDbService<UserBindWorkspaceMod
|
|||||||
list = list.stream()
|
list = list.stream()
|
||||||
.map(s -> UserBindWorkspaceModel.getId(s, workspaceId))
|
.map(s -> UserBindWorkspaceModel.getId(s, workspaceId))
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
|
// 兼容旧数据
|
||||||
|
list.add(UserBindWorkspaceModel.getId(userModel.getId(), workspaceId));
|
||||||
return this.getByKey(list);
|
return this.getByKey(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user