set currentTask in addCustomer

This commit is contained in:
Michael Hoennig 2022-08-24 18:48:37 +02:00
parent 595c11c7ac
commit 68dfadf0e2

View File

@ -49,6 +49,7 @@ public class CustomerController implements CustomersApi {
final String assumedRoles,
final CustomerResource customer) {
context.setCurrentTask("create new customer: #" + customer.getReference() + " / " + customer.getPrefix());
context.setCurrentUser(currentUser);
if (assumedRoles != null && !assumedRoles.isBlank()) {
context.assumeRoles(assumedRoles);