mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 15:30:42 +00:00
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:
parent
4b80ecdb1e
commit
8f53c11a85
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue