Project

General

Profile

Bug #18249 » 20080219_accessCheckWorkspaces3.diff

Administrator Admin, 2008-02-19 13:41

View differences:

typo3/classes/class.workspaceselector.php (working copy)
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
require_once (PATH_typo3.'mod/user/ws/conf.php');
/**
* class to render the workspace selector
......
* @return boolean true if user has access, false if not
*/
public function checkAccess() {
// FIXME - needs proper access check
return true;
global $MCONF;
return $GLOBALS['BE_USER']->modAccess(array('name' => 'user', 'access' => 'user,group'), false) && $GLOBALS['BE_USER']->modAccess($MCONF, false);
}
/**
......
include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/classes/class.workspaceselector.php']);
}
?>
?>
(3-3/3)