1

added functionality to choose wether group is private or open

This commit is contained in:
killerber4t
2020-03-14 11:50:52 +01:00
parent 3d7681fc8f
commit d3c5ded6d0
3 changed files with 28 additions and 18 deletions

View File

@ -79,7 +79,8 @@ public class Gruppen2Controller {
@RequestParam(value = "visibility", required = false) Boolean visibility) {
Account account = keyCloakService.createAccountFromPrincipal(token);
controllerService.createGroup(account, title, beschreibung);
if (visibility == null) visibility=false;
controllerService.createGroup(account, title, beschreibung, visibility);
return "redirect:/gruppen2/";
}