mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 13:46:48 +00:00
6ac574dada
`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 |
||
---|---|---|
.. | ||
parserTests | ||
parserTestsEquivset | ||
phpunit | ||
selenium |