Slight UI cleanup
This commit is contained in:
parent
50d447859f
commit
1b2a5594e2
1 changed files with 5 additions and 0 deletions
|
|
@ -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 ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue