Revert "[BUGFIX] BE User module allows switching to CLI users"
authorFrancois Suter <francois@typo3.org>
Sun, 24 Jul 2011 16:40:51 +0000 (18:40 +0200)
committerFrancois Suter <francois@typo3.org>
Sun, 24 Jul 2011 16:43:29 +0000 (18:43 +0200)
after discussion in the Core list. Switching to CLI users *is* useful.

This reverts commit e33effb84b6efdc1f8bddf25dc2662d76b3c991d

Change-Id: I8c19a14c31388d47e29db1f5ee2468cc1434bd25
Reviewed-on: http://review.typo3.org/3700
Reviewed-by: Francois Suter
Tested-by: Francois Suter
typo3/sysext/beuser/mod/index.php

index 1353fd3..9ddcbf0 100755 (executable)
@@ -1407,7 +1407,7 @@ class SC_mod_tools_be_user_index {
                                        $uItem = '<tr><td width="130">' . t3lib_iconWorks::getSpriteIconForRecord('be_users',$uDat,array('title'=> $uDat['uid'] )) . $this->linkUser($uDat['username'],$uDat) . '&nbsp;&nbsp;</td><td nowrap="nowrap">' . $this->elementLinks('be_users',$uDat);
                                        if ($curUid != $uDat['uid'] && !$uDat['disable'] && ($uDat['starttime'] == 0 ||
                                                $uDat['starttime'] < $GLOBALS['EXEC_TIME']) && ($uDat['endtime'] == 0 ||
-                                               $uDat['endtime'] > $GLOBALS['EXEC_TIME']) && (substr($uDat['username'], 0, 5) !== '_cli_')) {
+                                               $uDat['endtime'] > $GLOBALS['EXEC_TIME'])) {
                                                $uItem .= '<a href="' . t3lib_div::linkThisScript(array('SwitchUser'=>$uDat['uid'])) . '" target="_top" title="' . htmlspecialchars($GLOBALS['LANG']->getLL('switchUserTo', true) . ' ' . $uDat['username']) . ' ' . $GLOBALS['LANG']->getLL('changeToMode', TRUE) . '">' .
                                                                t3lib_iconWorks::getSpriteIcon('actions-system-backend-user-switch') .
                                                        '</a>'.