* Disable versioning in clickMenu if BE user doesn't have access to the versioning...
authorThorsten Kahler <thorsten.kahler@dkd.de>
Wed, 5 Sep 2007 10:12:29 +0000 (10:12 +0000)
committerThorsten Kahler <thorsten.kahler@dkd.de>
Wed, 5 Sep 2007 10:12:29 +0000 (10:12 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-0@2489 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index b7c73c0..4405861 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2007-09-05  Thorsten Kahler  <thorsten.kahler@dkd.de>
 
        * Fixed bug #4160: Moving content elements in frontent editing mode causes crash
+       * Disable versioning in clickMenu if BE user doesn't have access to the versioning module
 
 2007-08-23  Andreas Otto  <andreas.otto@dkd.de>
 
index a28dc31..2844d84 100755 (executable)
@@ -66,7 +66,7 @@ class tx_version_cm1 {
                global $BE_USER,$TCA,$LANG;
                
                $localItems = Array();
-               if (!$backRef->cmLevel && $uid>0)       {
+               if (!$backRef->cmLevel && $uid>0 && $BE_USER->check('modules','txversionM1'))   {
 
                                // Returns directly, because the clicked item was not from the pages table
                        if (!$TCA[$table] || !$TCA[$table]['ctrl']['versioningWS'])     return $menuItems;