Project

General

Profile

Bug #11825 » 11825.patch

Tolleiv Nietsch, 2011-01-16 11:54

View differences:

Classes/BackendUserInterface/WorkspaceSelectorToolbarItem.php (working copy)
if (t3lib_extMgm::isLoaded('workspaces')) {
if ($this->checkAccess == NULL) {
$availableWorkspaces = tx_Workspaces_Service_Workspaces::getAvailableWorkspaces();
if (count($availableWorkspaces) > 1) {
if (count($availableWorkspaces) > 0) {
$this->checkAccess = TRUE;
} else {
$this->checkAccess = FALSE;
Classes/Service/Workspaces.php (working copy)
* @return array
*/
protected function filterPermittedElements($recs, $table) {
$checkField = ($table == 'pages') ? 'uid' : 'pid';
$checkField = ($table == 'pages') ? 'uid' : 'wspid';
$permittedElements = array();
if (is_array($recs)) {
foreach ($recs as $rec) {
(3-3/3)