User:Joepayne/stripRights.js: Difference between revisions
Jump to navigation
Jump to search
(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?"); |