Project

General

Profile

Feature #19529 » typo3_changes2.diff

Administrator Admin, 2008-10-30 11:06

View differences:

typo3_new/mod/user/ws/index.php 2008-10-27 17:03:49.000000000 +0100
// here only if obtaining mount points for custom workspaces
// Warning: all fields needed for t3lib_iconWorks::getIconImage()!
$MPs = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*', 'pages', 'deleted=0 AND uid IN (' . $GLOBALS['TYPO3_DB']->cleanIntList($wksp['db_mountpoints']) . ')', '', 'title');
if($GLOBALS['BE_USER']->workspaceRec['use_user_db_mounts'] == 1) {
$MPs = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*', 'pages', 'deleted=0 AND uid IN (' . $GLOBALS['TYPO3_DB']->cleanIntList($GLOBALS['BE_USER']->groupData['webmounts']) . ')', '', 'title');
} else {
$MPs = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*', 'pages', 'deleted=0 AND uid IN (' . $GLOBALS['TYPO3_DB']->cleanIntList($wksp['db_mountpoints']) . ')', '', 'title');
}
$content_array = array();
if (count($MPs) > 0) {
$isAdmin = $GLOBALS['BE_USER']->isAdmin();
typo3_new/sysext/beuser/mod/index.php 2008-10-27 17:02:12.000000000 +0100
}
// Add custom workspaces (selecting all, filtering by BE_USER check):
$workspaces = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,title,adminusers,members,reviewers,db_mountpoints','sys_workspace','pid=0'.t3lib_BEfunc::deleteClause('sys_workspace'),'','title');
$workspaces = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('uid,title,adminusers,members,reviewers,db_mountpoints,use_user_db_mounts','sys_workspace','pid=0'.t3lib_BEfunc::deleteClause('sys_workspace'),'','title');
if (count($workspaces)) {
foreach ($workspaces as $rec) {
if ($this->checkWorkspace($rec)) {
$options[$rec['uid']] = $rec['uid'].': '.$rec['title'];
// Check if all mount points are accessible, otherwise show error:
if (trim($rec['db_mountpoints'])!=='') {
if (trim($rec['db_mountpoints'])!=='' && ($rec['use_user_db_mounts'] == 0)) {
$mountPoints = t3lib_div::intExplode(',',$this->workspaceRec['db_mountpoints'],1);
foreach ($mountPoints as $mpId) {
if (!$this->isInWebMount($mpId,'1=1')) {
typo3_new/sysext/lang/locallang_csh_sysws.xml 2008-10-27 17:08:21.000000000 +0100
&quot;Notify all users on any change&quot; : All users in workspace are notified regardless of change.</label>
<label index="db_mountpoints.description">If one or more DB mounts are specified the page tree of the backend will be locked into these root points during work in the workspace.</label>
<label index="db_mountpoints.details">Any DB mount specified here must be inside the DB mount set for the backend user who logs in. If that is not the case the workspace DB mount will simply not be mounted for the user. If no DB mounts are specified for the workspace the users will access the DB mounts of their user profile.</label>
<label index="use_user_db_mounts.description">To use the DB mounts from the user/group configuration activate this option. Then the workspace DB mounts are not used!</label>
<label index="use_user_db_mounts.details">If there are several users with different DB mounts but the same worspace, this option is helpful. If this option is activated the DB mounts of the workspace configuration are not used. Instead of them the user/group DB mounts are used.</label>
<label index="file_mountpoints.description">Filemounts available for workspace users. Please see details for security information!</label>
<label index="file_mountpoints.details">IMPORTANT: By default a draft workspace has all filemounts disabled! This is because versioning does not apply to any files edited through filemounts in TYPO3. Hence any access to those files would violate the principle that no content managed in a draft workspace will be live before published.
However, for specific projects this violation might be acceptable or necessary and therefore you can add a filemount. This will be forced upon any user in the workspace regardless of his filemounts inherited from his groups and user profile!</label>
typo3_new/sysext/lang/locallang_tca.xml 2008-10-27 17:08:56.000000000 +0100
<label index="sys_workspace.vtypes">Disable Versioning Types for members and reviewers:</label>
<label index="sys_workspace.publish_access">Publish access:</label>
<label index="sys_workspace.stagechg_notification">Stage change notification by email:</label>
<label index="sys_workspace.use_user_db_mounts">Use DB mounts from user/group:</label>
<label index="pages">Page</label>
<label index="doktype.I.0">Standard</label>
<label index="doktype.I.1">SysFolder</label>
(2-2/3)