mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-23 21:53:35 +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 |
||
---|---|---|
.phan | ||
db_patches | ||
i18n | ||
includes | ||
maintenance | ||
modules | ||
tests | ||
.eslintignore | ||
.eslintrc.json | ||
.gitignore | ||
.gitreview | ||
.phpcs.xml | ||
.stylelintrc.json | ||
AbuseFilter.alias.php | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
COPYING | ||
extension.json | ||
Gruntfile.js | ||
package-lock.json | ||
package.json | ||
quibble.yaml |