title: TYPO3 get BE logged-in user id in tca
body: <p>TYPO3 6.1.3</p>
  
  <p>How to get the logged in user details in ext/myext/Configuration/TCA/mytca.php ?</p>
  
  <p>I am getting <code>$GLOBALS['BE_USER']</code> is empty.</p>
  
  <p>I have tried by initializing beuser like this.</p>
  
  <pre><code>$BE_USER = \TYPO3\CMS\Core\Core\Bootstrap::initializeBackendUser();
  </code></pre>
  
  <p>Now I get be_user details. 
  But the main problem is, if I logout TYPO3, I can not login back!</p>
  
  <p>I have also tried this, but no success (same issue as above)</p>
  
  <pre><code>if (!is_object($GLOBALS['BE_USER'])) {
    $GLOBALS['BE_USER'] = t3lib_div::makeInstance('t3lib_beUserAuth');
    $GLOBALS['BE_USER']-&gt;start();   // Object is initialized
    $GLOBALS['BE_USER']-&gt;backendCheckLogin();
  }
  </code></pre>