MediaWiki:Gadget-markadmins.js: Difference between revisions
MediaWiki interface page
More actions
oops |
fix some groups being removed |
||
Line 8: | Line 8: | ||
'A' : 'administrator', | 'A' : 'administrator', | ||
'B' : 'bureaucrat', | 'B' : 'bureaucrat', | ||
'CU': 'checkuser' | 'CU': 'checkuser' | ||
'IA': 'interface administrator', | 'IA': 'interface administrator', | ||
'OS': 'oversight', | 'OS': 'oversight', | ||
Line 17: | Line 15: | ||
'SA': 'system administrator', | 'SA': 'system administrator', | ||
'TS': 'trust and safety', | 'TS': 'trust and safety', | ||
}; | }; | ||
Line 59: | Line 56: | ||
action: 'query', | action: 'query', | ||
list: 'allusers', | list: 'allusers', | ||
augroup: 'sysop|bureaucrat|checkuser | augroup: 'sysop|bureaucrat|checkuser|interface-admin|suppress|rollback|steward|sysadmin|trustandsafety', | ||
auprop: 'groups', | auprop: 'groups', | ||
aulimit: 500, | aulimit: 500, | ||
Line 66: | Line 63: | ||
}).done(function(ans) { | }).done(function(ans) { | ||
var list = ans.query.allusers, | var list = ans.query.allusers, | ||
groups = ['sysop', 'bureaucrat', 'checkuser | groups = ['sysop', 'bureaucrat', 'checkuser', 'interface-admin', 'suppress', 'rollback', 'steward', 'sysadmin', 'trustandsafety'], | ||
key = ['A', 'B', 'CU | key = ['A', 'B', 'CU', 'IA', 'OS', 'Rb', 'S', 'SA', 'TS'], | ||
userSet = {}; | userSet = {}; | ||