[Fusionforge-commits] r12126 - trunk/src/common/docman/views

Franck VILLAUME nerville at libremir.placard.fr.eu.org
Tue Feb 1 10:02:38 CET 2011


Author: nerville
Date: 2011-02-01 10:02:38 +0100 (Tue, 01 Feb 2011)
New Revision: 12126

Modified:
   trunk/src/common/docman/views/listfile.php
Log:
fix if not logged

Modified: trunk/src/common/docman/views/listfile.php
===================================================================
--- trunk/src/common/docman/views/listfile.php	2011-01-31 18:52:11 UTC (rev 12125)
+++ trunk/src/common/docman/views/listfile.php	2011-02-01 09:02:38 UTC (rev 12126)
@@ -141,7 +141,7 @@
 		if (!$d->getLocked() && !$d->getReserved()) {
 			echo '<input type="checkbox" value="'.$d->getID().'" id="checkeddocid" class="checkeddocid" onchange="controllerListFile.checkgeneral()" />';
 		} else {
-			if ($d->getReservedBy() != $u->getID()) {
+			if (session_loggedin() && ($d->getReservedBy() != $u->getID())) {
 				echo '<input type="checkbox" name="disabled" disabled="disabled"';
 			} else {
 				echo '<input type="checkbox" value="'.$d->getID().'" id="checkeddocid" class="checkeddocid" onchange="controllerListFile.checkgeneral()" />';




More information about the Fusionforge-commits mailing list