[BUGFIX] Group permissions for new pages are not set 75/29875/2
authorMarkus Klein <klein.t3@mfc-linz.at>
Mon, 5 May 2014 16:06:55 +0000 (18:06 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 5 May 2014 21:07:41 +0000 (23:07 +0200)
This is a regression to #54085 which accidentally converted a !strcmp()
to !==.

Resolves: #56393
Releases: 6.2
Change-Id: Ie0b2e169916e6b0ea848510e615b05d68be02199
Reviewed-on: https://review.typo3.org/29875
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Loek Hilgersom
Tested-by: Loek Hilgersom
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/core/Classes/Authentication/BackendUserAuthentication.php

index 773f073..679ba19 100644 (file)
@@ -1513,8 +1513,9 @@ class BackendUserAuthentication extends \TYPO3\CMS\Core\Authentication\AbstractU
                                $this->dataLists['file_permissions'] .= ',' . $row['file_permissions'];
                                // Setting workspace permissions:
                                $this->dataLists['workspace_perms'] |= $row['workspace_perms'];
-                               // If this function is processing the users OWN group-list (not subgroups) AND if the ->firstMainGroup is not set, then the ->firstMainGroup will be set.
-                               if ((string)$idList !== '' && !$this->firstMainGroup) {
+                               // If this function is processing the users OWN group-list (not subgroups) AND
+                               // if the ->firstMainGroup is not set, then the ->firstMainGroup will be set.
+                               if ($idList === '' && !$this->firstMainGroup) {
                                        $this->firstMainGroup = $uid;
                                }
                        }