From: <var...@us...> - 2010-06-23 14:27:00
|
Revision: 7559 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7559&view=rev Author: vargenau Date: 2010-06-23 14:26:54 +0000 (Wed, 23 Jun 2010) Log Message: ----------- In Gforge, anon users can see ratings but cannot rate Modified Paths: -------------- trunk/lib/PageList.php Modified: trunk/lib/PageList.php =================================================================== --- trunk/lib/PageList.php 2010-06-23 13:39:18 UTC (rev 7558) +++ trunk/lib/PageList.php 2010-06-23 14:26:54 UTC (rev 7559) @@ -1,7 +1,7 @@ <?php //rcs_id('$Id$'); /* Copyright (C) 2004-2010 $ThePhpWikiProgrammingTeam - * Copyright (C) 2008-2009 Marc-Etienne Vargenau, Alcatel-Lucent + * Copyright (C) 2008-2010 Marc-Etienne Vargenau, Alcatel-Lucent * * This file is part of PhpWiki. * @@ -1302,10 +1302,13 @@ trigger_error(sprintf("%s: Bad column", $column), E_USER_NOTICE); return false; } - // FIXME: anon users might rate and see ratings also. - // Defer this logic to the plugin. - if ($column == 'rating' and !$GLOBALS['request']->_user->isSignedIn()) - return false; + if (!GFORGE) { + // FIXME: anon users might rate and see ratings also. + // Defer this logic to the plugin. + if ($column == 'rating' and !$GLOBALS['request']->_user->isSignedIn()) { + return false; + } + } $this->addColumnObject($this->_types[$column]); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |