From 5efe3d77752f25e199d5f3c4417788f05e7832cb Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 26 Jan 2023 15:06:06 -0600 Subject: SONAR-17706 Remove root_uuid in Components and all its uses --- .../src/test/java/org/sonar/server/user/ServerUserSessionTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/sonar-webserver-auth') diff --git a/server/sonar-webserver-auth/src/test/java/org/sonar/server/user/ServerUserSessionTest.java b/server/sonar-webserver-auth/src/test/java/org/sonar/server/user/ServerUserSessionTest.java index 70e0e9e92aa..a5feb662795 100644 --- a/server/sonar-webserver-auth/src/test/java/org/sonar/server/user/ServerUserSessionTest.java +++ b/server/sonar-webserver-auth/src/test/java/org/sonar/server/user/ServerUserSessionTest.java @@ -302,7 +302,7 @@ public class ServerUserSessionTest { assertThat(session.hasChildProjectsPermission(USER, application)).isTrue(); // change privacy of the project without updating the cache - db.getDbClient().componentDao().setPrivateForRootComponentUuidWithoutAudit(db.getSession(), project.uuid(), true); + db.getDbClient().componentDao().setPrivateForBranchUuidWithoutAudit(db.getSession(), project.uuid(), true); assertThat(session.hasChildProjectsPermission(USER, application)).isTrue(); } @@ -387,7 +387,7 @@ public class ServerUserSessionTest { assertThat(session.hasChildProjectsPermission(USER, portfolio)).isTrue(); // change privacy of the project without updating the cache - db.getDbClient().componentDao().setPrivateForRootComponentUuidWithoutAudit(db.getSession(), project.uuid(), true); + db.getDbClient().componentDao().setPrivateForBranchUuidWithoutAudit(db.getSession(), project.uuid(), true); assertThat(session.hasChildProjectsPermission(USER, portfolio)).isTrue(); } -- cgit v1.2.3