mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 11:06:49 +00:00
isSuperAdmin has canVerifyOidcClient
This commit is contained in:
parent
eed7992437
commit
742aa06fee
@ -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]
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user