1
0

defineContext now requires an existing user name or null to create a new user

This commit is contained in:
Michael Hoennig
2022-08-31 16:26:31 +02:00
parent 8731f4a7b2
commit a06feff42e
8 changed files with 28 additions and 27 deletions

View File

@ -30,7 +30,7 @@ public class RbacUserController implements RbacusersApi {
public ResponseEntity<RbacUserResource> createUser(
final RbacUserResource body
) {
context.define(body.getName());
context.define(null);
if (body.getUuid() == null) {
body.setUuid(UUID.randomUUID());