[TYPO3-core] RFC: bug #1827

Wolfgang Klinger wolfgang at stufenlos.net
Sun Feb 26 12:01:57 CET 2006



 *hiya!*

 Type: bugfix

 Empty page tree after deleting the current temporary page mount.
 BT reference: http://bugs.typo3.org/view.php?id=1827


 bye
 Wolfgang


-------------- next part --------------
--- TYPO3core/typo3/alt_db_navframe.php	2006-02-26 11:14:32.000000000 +0100
+++ TYPO3core_testing/typo3/alt_db_navframe.php	2006-02-26 11:54:43.000000000 +0100
@@ -430,8 +430,13 @@
 
 			// If mount point ID existed and is within users real mount points, then set it temporarily:
 		if ($temporaryMountPoint > 0 && $BE_USER->isInWebMount($temporaryMountPoint))	{
-			$this->pagetree->MOUNTS = array($temporaryMountPoint);
-			$this->active_tempMountPoint = t3lib_BEfunc::readPageAccess($temporaryMountPoint, $BE_USER->getPagePermsClause(1));
+			if ($this->active_tempMountPoint = t3lib_BEfunc::readPageAccess($temporaryMountPoint, $BE_USER->getPagePermsClause(1))) {
+				$this->pagetree->MOUNTS = array($temporaryMountPoint);
+			}
+			else {
+				// Clear temporary mount point as we have no access to it any longer
+				$this->settingTemporaryMountPoint(0);
+			}
 		}
 	}
 
@@ -471,4 +476,4 @@
 $SOBE->main();
 $SOBE->printContent();
 
-?>
\ No newline at end of file
+?>


More information about the TYPO3-team-core mailing list