Commit 196c0f60 authored by seykron's avatar seykron

Issue #27: restores commands scopes

parent aea95da8
......@@ -20,7 +20,7 @@ object CommandBeans {
bean {
CreateAccount(
name = "/new_account",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
agentService = ref(),
accountService = ref(),
treasuryConfig = ref()
......@@ -29,7 +29,7 @@ object CommandBeans {
bean {
CreateService(
name = "/new_service",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
agentService = ref(),
accountService = ref(),
treasuryConfig = ref(),
......@@ -39,7 +39,7 @@ object CommandBeans {
bean {
EditService(
name = "/edit_service",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
accountService = ref(),
memory = ref()
)
......@@ -47,14 +47,14 @@ object CommandBeans {
bean {
ListServices(
name = "/services",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
accountService = ref()
)
}
bean {
CreateSupporter(
name = "/new_supporter",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
agentService = ref(),
accountService = ref(),
accessControl = ref(),
......@@ -64,14 +64,14 @@ object CommandBeans {
bean {
ListSupporters(
name = "/supporters",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
accountService = ref()
)
}
bean {
InitTreasury(
name = "/init_treasury",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
accountService = ref(),
treasuryConfig = ref()
)
......@@ -79,7 +79,7 @@ object CommandBeans {
bean {
AddDonation(
name = "/new_donation",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
agentService = ref(),
accountService = ref(),
treasuryService = ref(),
......@@ -89,7 +89,7 @@ object CommandBeans {
bean {
Transfer(
name = "/new_transfer",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
accountService = ref(),
treasuryService = ref(),
treasuryConfig = ref()
......@@ -98,7 +98,7 @@ object CommandBeans {
bean {
Deposit(
name = "/new_deposit",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
agentService = ref(),
treasuryService = ref()
)
......@@ -116,7 +116,7 @@ object CommandBeans {
bean {
AddBill(
name = "/new_bill",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
accountService = ref(),
treasuryService = ref(),
memory = ref()
......@@ -125,14 +125,14 @@ object CommandBeans {
bean {
CancelBill(
name = "/cancel_bill",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
treasuryService = ref()
)
}
bean {
Bills(
name = "/bills",
scope = listOf(ChatType.PRIVATE, ChatType.GROUP),
scope = listOf(ChatType.GROUP),
treasuryService = ref(),
memory = ref()
)
......@@ -140,7 +140,7 @@ object CommandBeans {
bean {
PayBill(
name = "/pay_bill",
scope = listOf(ChatType.GROUP, ChatType.PRIVATE),
scope = listOf(ChatType.GROUP),
agentService = ref(),
treasuryService = ref()
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment