jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/321370 )

Change subject: Check whether user is allowed to see the hit count
......................................................................


Check whether user is allowed to see the hit count

Bug: T120562
Change-Id: I464fc4806b52327a58fddb54404f5869c8431194
---
M Views/AbuseFilterViewEdit.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Bartosz Dziewoński: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Views/AbuseFilterViewEdit.php b/Views/AbuseFilterViewEdit.php
index 136b0cd..9d02855 100644
--- a/Views/AbuseFilterViewEdit.php
+++ b/Views/AbuseFilterViewEdit.php
@@ -372,7 +372,7 @@
                }
 
                // Hit count display
-               if ( !empty( $row->af_hit_count ) ) {
+               if ( !empty( $row->af_hit_count ) && $user->isAllowed( 
'abusefilter-log-detail' ) ) {
                        $count_display = $this->msg( 'abusefilter-hitcount' )
                                ->numParams( (int) $row->af_hit_count )->text();
                        $hitCount = $this->linkRenderer->makeKnownLink(

-- 
To view, visit https://gerrit.wikimedia.org/r/321370
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I464fc4806b52327a58fddb54404f5869c8431194
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/AbuseFilter
Gerrit-Branch: master
Gerrit-Owner: Matěj Suchánek <matejsuchane...@gmail.com>
Gerrit-Reviewer: Bartosz Dziewoński <matma....@gmail.com>
Gerrit-Reviewer: Glaisher <glaisher.w...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to