Formular fertig

This commit is contained in:
holger.trampe 2021-06-11 14:32:30 +02:00
parent 3c74cf586c
commit 3337a98b16
1 changed files with 5 additions and 5 deletions

View File

@ -454,12 +454,12 @@ class RegistrationService {
/**
* REGISTRIERUNG EINER NEUEN AGENTUR PASSIERT HIER
*/
$newgid = "agencymaingroupid_".generateRandomAgencyId();
$newgid = "agencymaingroupid_".$this->generateRandomAgencyId();
$groupidfree = false;
while($groupidfree == false){
// Find the next free Agency-ID
if($this->groupManager->groupExists($newgid) == true){
$newgid = "agencymaingroupid_".generateRandomAgencyId();
$newgid = "agencymaingroupid_".$this->generateRandomAgencyId();
}
else{
$groupidfree = true;
@ -468,11 +468,11 @@ class RegistrationService {
//Creating default groups
$newgroup = $this->groupManager->createGroup($newgid);
$newgroup = $this->groupManager->setDisplayName("Mitarbeiter");
$newgroup->setDisplayName("Mitarbeiter");
$newgroup->addUser($user);
$newgroup_admins = $this->groupManager->createGroup($newgid."_defaultadmingroup");
$newgroup_admins = $this->groupManager->setDisplayName("Administratoren");
$newgroup_admins->setDisplayName("Administratoren");
$newgroup_admins->addUser($user);
// Create default Dirs
@ -488,7 +488,7 @@ class RegistrationService {
* Create a new Agency with data for fast loading other data
* string $agencygid, string $agencydirid, string $standarddirid
*/
$this->agencyManager->createAgencyOnReg(strval($newgroup->getGId()), $newFolderIdAG, $newFolderIdSt);
$this->agencyManager->createAgencyOnReg(strval($newgroup->getGId()), $newFolderIdAG, 0);
// disable user if this is requested by config
$adminApprovalRequired = $this->config->getAppValue($this->appName, 'admin_approval_required', 'no');