mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 18:46:46 +00:00
feature/Tweak Just In Time Entitlements, add created by proccess
This commit is contained in:
parent
86014698e1
commit
d183b79118
@ -2232,7 +2232,12 @@ object APIUtil extends MdcLoggable with CustomJsonFormats{
|
||||
// Add missing roles
|
||||
roles.map {
|
||||
role =>
|
||||
val addedEntitlement = Entitlement.entitlement.vend.addEntitlement(bankId, userId, role.toString())
|
||||
val addedEntitlement = Entitlement.entitlement.vend.addEntitlement(
|
||||
bankId,
|
||||
userId,
|
||||
role.toString(),
|
||||
"create_just_in_time_entitlements"
|
||||
)
|
||||
logger.info(s"Just in Time Entitlements: $addedEntitlement")
|
||||
addedEntitlement
|
||||
}.forall(_.isDefined)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user