Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewExamine.php |
— | — | @@ -106,6 +106,16 @@ |
107 | 107 | self::$examineType = 'log'; |
108 | 108 | self::$examineId = $logid; |
109 | 109 | |
| 110 | + if ( !SpecialAbuseLog::canSeeDetails() ) { |
| 111 | + $this->getOutput()->addWikiMsg( 'abusefilter-log-cannot-see-details' ); |
| 112 | + return; |
| 113 | + } |
| 114 | + |
| 115 | + if ( $row->afl_deleted && !SpecialAbuseLog::canSeeHidden() ) { |
| 116 | + $this->getOutput()->addWikiMsg( 'abusefilter-log-details-hidden' ); |
| 117 | + return; |
| 118 | + } |
| 119 | + |
110 | 120 | $vars = AbuseFilter::loadVarDump( $row->afl_var_dump ); |
111 | 121 | |
112 | 122 | $this->showExaminer( $vars ); |
Index: trunk/extensions/AbuseFilter/AbuseFilter.i18n.php |
— | — | @@ -104,6 +104,7 @@ |
105 | 105 | 'abusefilter-log-linkoncontribs-text' => 'Abuse log for this user', |
106 | 106 | 'abusefilter-log-hidden' => '(entry hidden)', |
107 | 107 | 'abusefilter-log-hide' => 'hide or unhide', // @todo FIXME: Message unused? |
| 108 | + 'abusefilter-log-cannot-see-details' => 'You do not have permission to see details of any entries.', |
108 | 109 | 'abusefilter-log-details-hidden' => 'You cannot view the details for this entry because it is hidden from public view.', |
109 | 110 | |
110 | 111 | // Hiding log entries |
— | — | @@ -580,6 +581,7 @@ |
581 | 582 | 'abusefilter-log-linkoncontribs-text' => 'Title for link added on [[Special:Contributions]] and other relevant special pages.', |
582 | 583 | 'abusefilter-log-hidden' => 'Text for a hidden log entry.', |
583 | 584 | 'abusefilter-log-hide' => 'This message may be unused.', |
| 585 | + 'abusefilter-log-cannot-see-details' => 'Message show instead of the log row for users without permissions to see any details.', |
584 | 586 | 'abusefilter-log-details-hidden' => 'Message shown instead of log row details when those are hidden.', |
585 | 587 | 'abusefilter-log-hide-legend' => 'Legend for form to hide a log entry.', |
586 | 588 | 'abusefilter-log-hide-id' => 'Field label in form to hide a log entry.', |