From f3bdd7b6c81b94fc9613a23e92acaca48f886930 Mon Sep 17 00:00:00 2001 From: Kaplan <43095@icfrk9y3jjmwk.attlocal.net> Date: Wed, 1 Nov 2023 12:07:52 -0700 Subject: [PATCH] change is check to a regex --- .../madie/measure/repositories/MeasureAclRepositoryImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/cms/gov/madie/measure/repositories/MeasureAclRepositoryImpl.java b/src/main/java/cms/gov/madie/measure/repositories/MeasureAclRepositoryImpl.java index 5628eb4b0..004a1dba3 100644 --- a/src/main/java/cms/gov/madie/measure/repositories/MeasureAclRepositoryImpl.java +++ b/src/main/java/cms/gov/madie/measure/repositories/MeasureAclRepositoryImpl.java @@ -55,9 +55,9 @@ public Page findMyActiveMeasures(String userId, Pageable pageable, Stri Criteria measureSetCriteria = new Criteria() .orOperator( - Criteria.where("measureSet.owner").is(userId), + Criteria.where("measureSet.owner").regex("^\\Q" + userId + "\\E$", "i"), Criteria.where("measureSet.acls.userId") - .is(userId) + .regex("^\\Q" + userId + "\\E$", "i") .and("measureSet.acls.roles") .in(RoleEnum.SHARED_WITH));