[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: restrict public accounts list to curre
From: |
gnunet |
Subject: |
[libeufin] branch master updated: restrict public accounts list to current demobank |
Date: |
Tue, 19 Oct 2021 10:55:54 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 84c52ec restrict public accounts list to current demobank
84c52ec is described below
commit 84c52ec7e8a6d4d8ce3c6e9d89e1ccd207b2053e
Author: ms <ms@taler.net>
AuthorDate: Tue Oct 19 10:55:51 2021 +0200
restrict public accounts list to current demobank
---
sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
index 5f78fa6..7e3f119 100644
--- a/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
+++ b/sandbox/src/main/kotlin/tech/libeufin/sandbox/Main.kt
@@ -1106,12 +1106,15 @@ val sandboxApp: Application.() -> Unit = {
// [...]
get("/public-accounts") {
+ val demobank =
ensureDemobank(call.getUriComponent("demobankid"))
val ret = object {
val publicAccounts = mutableListOf<CustomerInfo>()
}
transaction {
DemobankCustomerEntity.find {
- DemobankCustomersTable.isPublic eq true
+ DemobankCustomersTable.isPublic eq true and(
+ DemobankCustomersTable.demobankConfig eq
demobank.id
+ )
}.forEach {
ret.publicAccounts.add(
CustomerInfo(
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: restrict public accounts list to current demobank,
gnunet <=