commit a595c5374335b992dd511d0caa585c2814d405ea parent c3fdb9c4f63f027d3441125743162aa3a83e5be5 Author: Christian Grothoff <christian@grothoff.org> Date: Wed, 11 Jan 2023 15:56:14 +0100 Merge branch 'master' of git+ssh://git.taler.net/libeufin Diffstat:
| M | sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt @@ -1588,7 +1588,7 @@ val sandboxApp: Application.() -> Unit = { post("/subscribers") { // Only the admin can create Ebics subscribers. val user = call.request.basicAuth() - if (user != "admin") throw forbidden("Only the Admin can create Ebics subscribers.") + if (WITH_AUTH && (user != "admin")) throw forbidden("Only the Administrator can create Ebics subscribers.") val body = call.receive<EbicsSubscriberInfo>() // Create or get the Ebics subscriber that is found. transaction {