From 1b2a5594e20e2592ce59fc22d88b3f3daa2d4d57 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 2 Apr 2008 18:09:02 +0000 Subject: [PATCH] Slight UI cleanup --- includes/LogEventsList.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/LogEventsList.php b/includes/LogEventsList.php index a5f82ba475..373dd031c2 100644 --- a/includes/LogEventsList.php +++ b/includes/LogEventsList.php @@ -374,6 +374,11 @@ class LogPager extends ReverseChronologicalPager { * @private */ private function limitType( $type ) { + global $wgLogRestrictions, $wgUser; + // Don't even show header for private logs; don't recognize it... + if( isset($wgLogRestrictions[$type]) && !$wgUser->isAllowed($wgLogRestrictions[$type]) ) { + $type = ''; + } // Don't show private logs to unpriviledged users $hideLogs = LogEventsList::getExcludeClause( $this->mDb ); if( $hideLogs !== false ) { -- 2.20.1