Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -974,7 +974,12 @@ |
975 | 975 | global $wgArticle; |
976 | 976 | global $wgRequest; |
977 | 977 | global $wgCollectionFormats; |
| 978 | + global $wgCollectionPortletForLoggedInUsersOnly, $wgUser; |
978 | 979 | |
| 980 | + if( $wgCollectionPortletForLoggedInUsersOnly && !$wgUser->isLoggedIn() ) { |
| 981 | + return true; |
| 982 | + } |
| 983 | + |
979 | 984 | wfLoadExtensionMessages( 'Collection' ); |
980 | 985 | |
981 | 986 | $action = $wgRequest->getVal('action'); |