From b24b45c140ff48bdc89f8daf85a4f9182f5ef2fb Mon Sep 17 00:00:00 2001 From: Aurelien Poscia Date: Mon, 12 Aug 2024 10:47:57 +0200 Subject: [PATCH] SONAR-22559 Remove permissions on GitLab managed groups for GitLab projects --- .../common/permission/GroupPermissionChange.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/server/sonar-webserver-common/src/main/java/org/sonar/server/common/permission/GroupPermissionChange.java b/server/sonar-webserver-common/src/main/java/org/sonar/server/common/permission/GroupPermissionChange.java index cb655361bdf..6577a850b53 100644 --- a/server/sonar-webserver-common/src/main/java/org/sonar/server/common/permission/GroupPermissionChange.java +++ b/server/sonar-webserver-common/src/main/java/org/sonar/server/common/permission/GroupPermissionChange.java @@ -20,6 +20,7 @@ package org.sonar.server.common.permission; import java.util.Optional; +import java.util.StringJoiner; import javax.annotation.Nullable; import org.sonar.db.entity.EntityDto; import org.sonar.db.user.GroupDto; @@ -49,5 +50,14 @@ public class GroupPermissionChange extends PermissionChange { return getGroupUuidOrAnyone().getUuid(); } - + @Override + public String toString() { + return new StringJoiner(", ", GroupPermissionChange.class.getSimpleName() + "[", "]") + .add("groupDto=" + groupDto) + .add("operation=" + getOperation()) + .add("permission='" + getPermission() + "'") + .add("entity=" + getEntity()) + .add("permissionService=" + permissionService) + .toString(); + } } -- 2.39.5