No-brainer: Add blanks around OR statement in $BE_USER->getPagePermsClause()
authorMichael Stucki <michael.stucki@typo3.org>
Sun, 9 Nov 2008 07:45:39 +0000 (07:45 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Sun, 9 Nov 2008 07:45:39 +0000 (07:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4436 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/class.t3lib_userauthgroup.php

index 4cdb0a0..f05a34f 100755 (executable)
@@ -342,9 +342,9 @@ class t3lib_userAuthGroup extends t3lib_userAuth {
                        $perms = intval($perms);        // Make sure it's integer.
                        $str= ' ('.
                                '(pages.perms_everybody & '.$perms.' = '.$perms.')'.    // Everybody
-                               'OR(pages.perms_userid = '.$this->user['uid'].' AND pages.perms_user & '.$perms.' = '.$perms.')';       // User
+                               ' OR (pages.perms_userid = '.$this->user['uid'].' AND pages.perms_user & '.$perms.' = '.$perms.')';     // User
                        if ($this->groupList)   {
-                               $str.= 'OR(pages.perms_groupid in ('.$this->groupList.') AND pages.perms_group & '.$perms.' = '.$perms.')';     // Group (if any is set)
+                               $str.= ' OR (pages.perms_groupid in ('.$this->groupList.') AND pages.perms_group & '.$perms.' = '.$perms.')';   // Group (if any is set)
                        }
                        $str.=')';