Project

General

Profile

Bug #13002 » v1.patch

Tolleiv Nietsch, 2011-02-12 17:56

View differences:

Classes/ExtDirect/AbstractHandler.php (working copy)
* @return integer The current workspace ID
*/
protected function getCurrentWorkspace() {
$workspaceId = $GLOBALS['BE_USER']->workspace;
if ($GLOBALS['BE_USER']->isAdmin()) {
$workspaceId = $GLOBALS['BE_USER']->getSessionData('tx_workspace_activeWorkspace');
} else {
$workspaceId = $GLOBALS['BE_USER']->workspace;
$activeId = $GLOBALS['BE_USER']->getSessionData('tx_workspace_activeWorkspace');
$workspaceId = $activeId !== NULL ? $activeId : $workspaceId;
}
return $workspaceId;
}
(1-1/2)