fix resource data authorization does not take effect. (#13318)

This commit is contained in:
Kerwin 2023-01-03 14:57:00 +08:00 committed by GitHub
parent 1796577b53
commit 84b1f6dcd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,7 +235,7 @@ public class ResourcePermissionCheckServiceImpl implements ResourcePermissionChe
}
List<Resource> ownResourceList = resourceMapper.queryResourceListAuthored(userId, -1);
relationResources.addAll(ownResourceList);
return ownResourceList.stream().map(Resource::getId).collect(toSet());
return relationResources.stream().map(Resource::getId).collect(toSet());
}
@Override