Go to file
Daimona Eaytoy 6ac574dada Add missing permission check to canSeeLogDetailsForFilter
`canSeeLogDetails` should also be checked when a filter is protected, as
it is the base right for being able to see abuselog entries. With this
in mind, check that immediately at the beginning of the method, instead
of repeating calls. Also merge the conditionals, and return early when a
permission check fails.

Move a test up so that it comes immediately after its data provider, and
add test cases for a few combinations of rights.

Change-Id: Ic3cf58f43803bef8bf2d65566434baff145b3fd5
2024-07-02 22:43:09 +02:00
.phan phan: Update config to load ConfirmEdit 2024-05-05 11:02:07 +03:00
db_patches Drop af_user(_text) and afh_user(_text) fields 2024-06-10 18:48:21 +02:00
i18n Localisation updates from https://translatewiki.net. 2024-07-01 09:24:18 +02:00
includes Add missing permission check to canSeeLogDetailsForFilter 2024-07-02 22:43:09 +02:00
maintenance Remove AbuseFilterActorMigration 2024-06-15 09:42:27 +02:00
modules build: Updating npm dependencies 2024-06-04 00:33:18 +00:00
tests Add missing permission check to canSeeLogDetailsForFilter 2024-07-02 22:43:09 +02:00
.eslintignore build: Update linters 2023-11-08 14:05:03 +00:00
.eslintrc.json build: Update linters 2022-03-17 22:19:08 +00:00
.gitignore Add config for Selenium and basic tests 2019-09-17 16:23:07 +00:00
.gitreview
.phpcs.xml build: Updating mediawiki/mediawiki-codesniffer to 43.0.0 2024-03-16 18:53:05 +00:00
.stylelintrc.json build: Update linters 2023-11-08 14:05:03 +00:00
AbuseFilter.alias.php Add new special page aliases for Chinese variants 2024-06-30 15:55:02 +08:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.4.0 2018-09-01 05:29:54 +00:00
composer.json Update minus-x to 1.1.3 2024-05-04 16:34:08 +00:00
COPYING
extension.json ConfirmEditHandler: Use SimpleCaptcha API to invoke CAPTCHA display 2024-06-26 16:07:40 +00:00
Gruntfile.js build: Run stylelint for less file 2023-11-28 20:06:41 +01:00
package-lock.json build: Updating npm dependencies 2024-06-16 16:32:36 +00:00
package.json build: Updating npm dependencies 2024-06-16 16:32:36 +00:00
quibble.yaml build: Add quibble.yaml and enable early warning bot feedback 2024-05-10 14:25:14 +02:00