User:Joepayne/stripRights.js: Difference between revisions

From Test Wiki
Content deleted Content added
Joepayne (talk | contribs)
Test
Joepayne (talk | contribs)
No edit summary
Line 52: Line 52:
).done( function ( data ) {
).done( function ( data ) {
try {
try {
if(data.query.users[0].groups.indexOf(!'sysop') >= 0) {/* Do nothing */}
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?");