From cc22b79c60ff28938e0a67be1a6660d099c5ef23 Mon Sep 17 00:00:00 2001 From: vargenau Date: Wed, 23 Jun 2010 14:26:54 +0000 Subject: [PATCH] In Gforge, anon users can see ratings but cannot rate git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@7559 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/PageList.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/PageList.php b/lib/PageList.php index 3c21e8b77..2698e6be6 100644 --- a/lib/PageList.php +++ b/lib/PageList.php @@ -1,7 +1,7 @@ _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]); -- 2.45.0