(improvement)(auth) When checking auth, only the models involved in the query are considered rather than the models included in the data set. #1625 (#1731)

Co-authored-by: lxwcodemonkey
This commit is contained in:
LXW
2024-09-29 00:33:10 +08:00
committed by GitHub
parent 3a11ccb6e9
commit 47df22d1a0
4 changed files with 94 additions and 52 deletions

View File

@@ -101,7 +101,7 @@ public class S2VisitsDemo extends S2BaseDemo {
// create data set
DataSetResp s2DataSet = addDataSet(s2Domain);
addAuthGroup_1(stayTimeModel);
addAuthGroup_2(stayTimeModel);
addAuthGroup_2(pvUvModel);
// create terms and plugin
addTerm(s2Domain);
@@ -513,9 +513,9 @@ public class S2VisitsDemo extends S2BaseDemo {
authService.addOrUpdateAuthGroup(authGroupReq);
}
public void addAuthGroup_2(ModelResp stayTimeModel) {
public void addAuthGroup_2(ModelResp pvuvModel) {
AuthGroup authGroupReq = new AuthGroup();
authGroupReq.setModelId(stayTimeModel.getId());
authGroupReq.setModelId(pvuvModel.getId());
authGroupReq.setName("tom_row_permission");
List<AuthRule> authRules = new ArrayList<>();