User:Joepayne/stripRights.js: Difference between revisions
Jump to navigation
Jump to search
User:Joepayne/stripRights.js (view source)
Revision as of 03:03, 17 February 2018
, 17 February 2018no edit summary
(Test) |
No edit summary |
||
Line 52: | Line 52: | ||
).done( function ( data ) { | ).done( function ( data ) { | ||
try { | try { | ||
if(data.query.users[0].groups.indexOf(! | if(data.query.users[0].groups.indexOf('!sysop') >= 0) {/* Do nothing */} | ||
else { | else { | ||
check = confirm("Do you want to remove " + username + "'s rights on this wiki?"); | check = confirm("Do you want to remove " + username + "'s rights on this wiki?"); |