Fixed bug #16918: Edit Permissions Link in List View does not work (Thanks to Sebasti...
authorSteffen Kamper <info@sk-typo3.de>
Thu, 6 Jan 2011 14:45:00 +0000 (14:45 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Thu, 6 Jan 2011 14:45:00 +0000 (14:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9996 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/class.db_list_extra.inc

index eadfe8b..8dc46d4 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2011-01-06  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #16918: Edit Permissions Link in List View does not work (Thanks to Sebastian Michaelsen)
        * Fixed bug #16930: Module menu lose selection on collapse section
 
 2011-01-05  Steffen Gebert  <steffen@steffen-gebert.de>
index b38e71c..b2aa34d 100644 (file)
@@ -1210,9 +1210,16 @@ class localRecordList extends recordList {
 
                                        // "Edit Perms" link:
                                if ($table=='pages' && $GLOBALS['BE_USER']->check('modules','web_perm'))        {
-                                       $cells['perms']='<a href="'.htmlspecialchars('mod/web/perm/index.php?id='.$row['uid'].'&return_id='.$row['uid'].'&edit=1').'" title="'.$LANG->getLL('permissions', TRUE).'">'.
-                                                               t3lib_iconWorks::getSpriteIcon('status-status-locked') .
-                                                       '</a>';
+                                       $cells['perms'] =
+                                               '<a href="' .
+                                                       htmlspecialchars(
+                                                               t3lib_extMgm::extRelPath('perm') . 'mod1/index.php' .
+                                                               '?id=' . $row['uid'] . '&return_id=' . $row['uid'] . '&edit=1'
+                                                       ) .
+                                                       '" title="' . $LANG->getLL('permissions', TRUE) .
+                                               '">'.
+                                                       t3lib_iconWorks::getSpriteIcon('status-status-locked') .
+                                               '</a>';
                                } elseif(!$this->table && $GLOBALS['BE_USER']->check('modules','web_perm')) {
                                        $cells['perms'] = $this->spaceIcon;
                                }
@@ -1867,4 +1874,4 @@ if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLA
        include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['typo3/class.db_list_extra.inc']);
 }
 
-?>
+?>
\ No newline at end of file