Fixed bug #11825: non-admin editors can't see non-page records within the review...
authorsonne <sonne@743128fe-103e-dd11-99c4-001b210b3e58>
Sun, 16 Jan 2011 18:36:17 +0000 (18:36 +0000)
committersonne <sonne@743128fe-103e-dd11-99c4-001b210b3e58>
Sun, 16 Jan 2011 18:36:17 +0000 (18:36 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/CoreProjects/workspaces/workspaces/trunk@3831 743128fe-103e-dd11-99c4-001b210b3e58

typo3/sysext/workspaces/ChangeLog
typo3/sysext/workspaces/Classes/Service/Workspaces.php

index 62efe2d..dbbd099 100644 (file)
@@ -1,4 +1,8 @@
-2011-01-17  Tolleiv Nietsch <typo3@tolleiv.de>
+2011-01-16  Sonja Scholz <ss@cabag.ch>
+
+       * Fixed bug #11825: non-admin editors can't see non-page records within the review module
+
+2011-01-16  Tolleiv Nietsch <typo3@tolleiv.de>
 
        * Followup to #16630: migrateWorkspaces in Install-Tool does not work, if extbase is not intalled
        * Fixed bug #12076: Remove "help" tab
index 89c32e1..2e7c9a4 100644 (file)
@@ -390,7 +390,7 @@ class tx_Workspaces_Service_Workspaces {
         * @return array
         */
        protected function filterPermittedElements($recs, $table) {
-               $checkField = ($table == 'pages') ? 'uid' : 'pid';
+               $checkField = ($table == 'pages') ? 'uid' : 'wspid';
                $permittedElements = array();
                if (is_array($recs)) {
                        foreach ($recs as $rec) {
@@ -461,4 +461,4 @@ class tx_Workspaces_Service_Workspaces {
 if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/Workspaces.php'])) {
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/Workspaces.php']);
 }
-?>
\ No newline at end of file
+?>