|
|
@@ -594,7 +594,7 @@ class SiteController extends ActionController
|
|
|
->set('TSconfig', $tsconfig)
|
|
|
->execute();
|
|
|
|
|
|
- // Setup user and group rights
|
|
|
+ // Setup users and group rights
|
|
|
$this->setBeUserPerms($organizationId, false, $beGroupUid, $beUserUid);
|
|
|
|
|
|
// Try to commit the result
|
|
|
@@ -714,6 +714,9 @@ class SiteController extends ActionController
|
|
|
->where($queryBuilder->expr()->eq('uid', $website['uid']))
|
|
|
->execute();
|
|
|
|
|
|
+ // Reset the backend users and group permissions
|
|
|
+ $this->setBeUserPerms($organizationId, true);
|
|
|
+
|
|
|
// Try to commit the result
|
|
|
$commitSuccess = $this->connectionPool->getConnectionByName('Default')->commit();
|
|
|
if (!$commitSuccess) {
|
|
|
@@ -2378,9 +2381,9 @@ class SiteController extends ActionController
|
|
|
->orWhere("path LIKE '%form_definitions/" . $organizationId . "/'");
|
|
|
$statement = $queryBuilder->execute();
|
|
|
$rows = $statement->fetchAllAssociative() ?: [];
|
|
|
- $files = [];
|
|
|
+ $fileMounts = [];
|
|
|
foreach ($rows as $row) {
|
|
|
- $files[] = $row[0];
|
|
|
+ $fileMounts[] = $row['uid'];
|
|
|
}
|
|
|
|
|
|
$mainGroup = self::IS_PRODUCT_PREMIUM[$userData['product']] ? self::BEGROUP_EDITOR_PREMIUM : self::BEGROUP_EDITOR_STANDARD;
|
|
|
@@ -2391,7 +2394,7 @@ class SiteController extends ActionController
|
|
|
'deleted' => 0,
|
|
|
'subgroup' => $mainGroupUid,
|
|
|
'db_mountpoints' => $rootUid,
|
|
|
- 'file_mountPoints' => implode(',', $files),
|
|
|
+ 'file_mountPoints' => implode(',', $fileMounts),
|
|
|
'file_permissions' => 'readFolder,writeFolder,addFolder,renameFolder,moveFolder,deleteFolder,readFile,writeFile,addFile,renameFile,replaceFile,moveFile,copyFile,deleteFile',
|
|
|
'groupMods' => '', // inherited from the base EditorsGroup
|
|
|
'pagetypes_select' => '', // inherited from the base EditorsGroup
|