diff options
author | MS <ms@taler.net> | 2023-01-11 15:50:51 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2023-01-11 15:51:58 +0100 |
commit | 3a6fe3f528f4f89b240655b138a1f3b4513a0851 (patch) | |
tree | a5d4327e7859aad247390db13f7a1764bd586ff0 /sandbox | |
parent | 7cb084df970fb10e001cf2755960b48406ae4fa5 (diff) | |
download | libeufin-3a6fe3f528f4f89b240655b138a1f3b4513a0851.tar.gz libeufin-3a6fe3f528f4f89b240655b138a1f3b4513a0851.tar.bz2 libeufin-3a6fe3f528f4f89b240655b138a1f3b4513a0851.zip |
accommodating --no-auth
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt index f514ae60..6bfa80d7 100644 --- 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 { |