Bug #18249 » 20080219_accessCheckWorkspaces2.diff
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;
|
||
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']);
|
||
}
|
||
?>
|
||
?>
|