[BUGFIX] Allow Tx_ as class prefix
[Packages/TYPO3.CMS.git] / typo3 / sysext / setup / mod / index.php
index ca388cb..69b1718 100755 (executable)
@@ -938,7 +938,7 @@ class SC_mod_user_setup_index {
        protected function checkAccess(array $config) {
                $access = $config['access'];
                        // check for hook
-               if (strpos($access, 'tx_') === 0) {
+               if (t3lib_div::hasValidClassPrefix($access)) {
                        $accessObject = t3lib_div::getUserObj($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['setup']['accessLevelCheck'][$access] . ':&' . $access);
                        if (is_object($accessObject) && method_exists($accessObject, 'accessLevelCheck'))       {
                                        // initialize vars. If method fails, $set will be set to FALSE
@@ -1035,4 +1035,4 @@ $LANG->includeLLFile('EXT:setup/mod/locallang.xml');
 $SOBE->init();
 $SOBE->main();
 $SOBE->printContent();
-?>
\ No newline at end of file
+?>