Add default rights config

Add a conservative default configuration so that admins can use
abuse filters without any need for manual setup, and users can
see what's happening. Also expand grants a bit.

Bug: T191740
Change-Id: I4e3125a708277474f416903928397db7f8fb850d
This commit is contained in:
Gergő Tisza 2018-04-08 19:46:18 +02:00
parent 4b80ecdb1e
commit 8f53c11a85
No known key found for this signature in database
GPG key ID: C34FEC97E6257F96

View file

@ -28,6 +28,30 @@
"abusefilter-hide-log",
"abusefilter-modify-global"
],
"GroupPermissions": {
"*": {
"abusefilter-view": true,
"abusefilter-log": true
},
"sysop": {
"abusefilter-log-detail": true,
"abusefilter-modify": true,
"abusefilter-revert": true
}
},
"GrantPermissions": {
"basic": {
"abusefilter-view": true,
"abusefilter-log": true,
"abusefilter-log-detail": true
},
"rollback": {
"abusefilter-revert": true
},
"viewrestrictedlogs": {
"abusefilter-hidden-log": true
}
},
"SpecialPages": {
"AbuseLog": "SpecialAbuseLog",
"AbuseFilter": "SpecialAbuseFilter"
@ -190,13 +214,6 @@
"remoteExtPath": "AbuseFilter/modules"
},
"callback": "AbuseFilterHooks::onRegistration",
"GrantPermissions": {
"basic": {
"abusefilter-view": true,
"abusefilter-log-detail": true,
"abusefilter-log": true
}
},
"Hooks": {
"EditFilterMergedContent": "AbuseFilterHooks::onEditFilterMergedContent",
"GetAutoPromoteGroups": "AbuseFilterHooks::onGetAutoPromoteGroups",