mediawiki-extensions-AbuseF.../includes/View
Daimona Eaytoy e8471a717c Add method to properly check visibility of AbuseLog entries
This replaces the previous pattern of callers having to use
RevisionLookup if the result was 'implicit'. Also, in some cases where
we were just hiding things if the visibility was !== true, properly
handle the implicit case by using the new method. Make the new method
return string constants rather than bool|string.

The new method also fixes some potential info leaks which happened when
the row was hidden, the user could view suppressed AbuseLog entries, but
the associated revision was also deleted and the user couldn't see it
(this shouldn't be relevant for WMF wikis since AF deletion is
oversight-level).

Also add a bunch of tests for the various cases to ensure we don't
regress again.

Bug: T261532
Change-Id: I929f865acf5d207b739cb3af043f70cb59243ee0
2021-09-25 00:08:33 +00:00
..
AbuseFilterView.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilterViewDiff.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilterViewEdit.php build: Updating mediawiki/mediawiki-phan-config to 0.11.0 2021-09-07 19:30:42 -07:00
AbuseFilterViewExamine.php Add method to properly check visibility of AbuseLog entries 2021-09-25 00:08:33 +00:00
AbuseFilterViewHistory.php Clean up AbuseFilterViewHistory and AbuseFilterHistoryPager 2021-04-18 18:31:17 +02:00
AbuseFilterViewImport.php ViewImport/ViewList: Use setTitle instead of addHiddenField/setAction 2021-07-02 13:18:01 +02:00
AbuseFilterViewList.php ViewImport/ViewList: Use setTitle instead of addHiddenField/setAction 2021-07-02 13:18:01 +02:00
AbuseFilterViewRevert.php build: Updating dependencies 2021-07-21 18:51:18 +00:00
AbuseFilterViewTestBatch.php Refactor ParserStatus 2021-09-17 11:25:54 +00:00
AbuseFilterViewTools.php Create a new method for authorizing access to test tools 2021-02-20 17:54:35 +01:00
HideAbuseLog.php build: Updating dependencies 2021-07-21 18:51:18 +00:00