From d679c3744e04e5b9b18aa38e33de39687e3cb5de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Mili=C4=87?= Date: Wed, 17 Sep 2025 15:03:20 +0200 Subject: [PATCH] docfix/Add props experimental_become_user_that_created_consent --- obp-api/src/main/scala/code/api/util/ConsentUtil.scala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/obp-api/src/main/scala/code/api/util/ConsentUtil.scala b/obp-api/src/main/scala/code/api/util/ConsentUtil.scala index 7e7d4e294b..ecbe9bd84f 100644 --- a/obp-api/src/main/scala/code/api/util/ConsentUtil.scala +++ b/obp-api/src/main/scala/code/api/util/ConsentUtil.scala @@ -437,6 +437,8 @@ object Consent extends MdcLoggable { } if (cc.onBehalfOfUser.nonEmpty && APIUtil.getPropsAsBoolValue(nameOfProperty = "experimental_become_user_that_created_consent", defaultValue = false)) { + logger.info("experimental_become_user_that_created_consent = true") + logger.info(s"${cc.onBehalfOfUser.map(_.userId).getOrElse("")} is logged on instead of Consent user") Future(cc.onBehalfOfUser, Some(cc)) // Just propagate on behalf of user back } else { // 1. Get or Create a User