fix: properly set "advanced features" during user registration (#1638)

Previously, "advanced features" was per group, not per user. With this change, this is now properly submitted on user registration. The "seed data" setting is also per group.
This commit is contained in:
Philipp Fischbeck 2022-09-11 19:56:23 +02:00 committed by GitHub
parent 5105b13219
commit c3459d540b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -461,12 +461,12 @@ export default defineComponent({
password: password1.value, password: password1.value,
passwordConfirm: password2.value, passwordConfirm: password2.value,
locale: locale.value, locale: locale.value,
seedData: groupSeed.value, advanced: advancedOptions.value,
}; };
if (state.ctx.type === RegistrationType.CreateGroup) { if (state.ctx.type === RegistrationType.CreateGroup) {
payload.group = groupName.value; payload.group = groupName.value;
payload.advanced = advancedOptions.value;
payload.private = groupPrivate.value; payload.private = groupPrivate.value;
payload.seedData = groupSeed.value;
} else { } else {
payload.groupToken = token.value; payload.groupToken = token.value;
} }