Fixed bug #6996: Versioning in clickmenu was unavailable for non-admins due to a...
authorIngmar Schlecht <ingmar.schlecht@typo3.org>
Mon, 17 Dec 2007 18:14:55 +0000 (18:14 +0000)
committerIngmar Schlecht <ingmar.schlecht@typo3.org>
Mon, 17 Dec 2007 18:14:55 +0000 (18:14 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-0@2846 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/version/class.tx_version_cm1.php

index d8bad79..0f288a8 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-12-17  Ingmar Schlecht  <ingmar@typo3.org>
+
+       * Fixed bug #6996: Versioning in clickmenu was unavailable for non-admins due to a problem of an earlier bugfix #4160 (Thanks to Helmut Hummel for the correction)
+
 2007-12-10  Ingmar Schlecht  <ingmar@typo3.org>
 
        * Release of TYPO3 4.0.8
index 2844d84..fbd93c7 100755 (executable)
@@ -66,7 +66,7 @@ class tx_version_cm1 {
                global $BE_USER,$TCA,$LANG;
                
                $localItems = Array();
-               if (!$backRef->cmLevel && $uid>0 && $BE_USER->check('modules','txversionM1'))   {
+               if (!$backRef->cmLevel && $uid>0 && $BE_USER->check('modules','web_txversionM1'))       {
 
                                // Returns directly, because the clicked item was not from the pages table
                        if (!$TCA[$table] || !$TCA[$table]['ctrl']['versioningWS'])     return $menuItems;