From 742aa06fee46c4a9190857fc0489c53c25a89cdb Mon Sep 17 00:00:00 2001 From: simonredfern Date: Thu, 29 Jan 2026 23:25:47 +0100 Subject: [PATCH] isSuperAdmin has canVerifyOidcClient --- obp-api/src/main/scala/code/api/v6_0_0/APIMethods600.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/obp-api/src/main/scala/code/api/v6_0_0/APIMethods600.scala b/obp-api/src/main/scala/code/api/v6_0_0/APIMethods600.scala index da7c65f08..de79ba6b7 100644 --- a/obp-api/src/main/scala/code/api/v6_0_0/APIMethods600.scala +++ b/obp-api/src/main/scala/code/api/v6_0_0/APIMethods600.scala @@ -7431,7 +7431,8 @@ trait APIMethods600 { cc => implicit val ec = EndpointContext(Some(cc)) for { (Full(u), callContext) <- authenticatedAccess(cc) - _ <- NewStyle.function.hasEntitlement("", u.userId, canVerifyOidcClient, callContext) + _ <- if(isSuperAdmin(u.userId)) Future.successful(Full(Unit)) + else NewStyle.function.hasEntitlement("", u.userId, canVerifyOidcClient, callContext) postedData <- NewStyle.function.tryons(s"$InvalidJsonFormat The Json body should be the VerifyOidcClientRequestJsonV600", 400, callContext) { json.extract[VerifyOidcClientRequestJsonV600] }