Start introducing RequestResponse

This commit is contained in:
Marek Wolan
2024-03-08 12:42:22 +00:00
parent 59bbc0e733
commit d331224b45
5 changed files with 47 additions and 11 deletions

View File

@@ -87,6 +87,7 @@ class DomainController(SimComponent):
"account",
RequestType(
func=lambda request, context: self.accounts[request.pop(0)].apply_request(request, context),
# TODO: not sure what should get returned here, revisit
validator=GroupMembershipValidator(allowed_groups=[AccountGroup.DOMAIN_ADMIN]),
),
)