You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Guard BEFORE the status transition commits: failing after it would strand the
3084
+
// application as ACCEPTED with no account. A consent-user applicant can only come
3085
+
// from a row that predates the creation-side guard (or was written another way).
3086
+
_ <- code.util.Helper.booleanToFuture(
3087
+
s"$InvalidUserId The application's user is a consent user (an agent identity minted by a Consent). Accounts are held by humans - re-apply with the granting user's USER_ID.",
3088
+
failCode =400, cc =Some(cc))(!appUser.exists(_.isConsentUser))
// Explicit target: fail loud rather than redirect (see the entitlement endpoints).
3244
+
// On ACCEPTED the application's user becomes the account holder, so a consent
3245
+
// user must be rejected here, before the application is stored.
3246
+
_ <- code.util.Helper.booleanToFuture(
3247
+
s"$InvalidUserId user_id names a consent user (an agent identity minted by a Consent). Accounts are held by humans - use the granting user's USER_ID.",
3248
+
failCode =400, cc =Some(cc))(!appUser.exists(_.isConsentUser))
0 commit comments