User:MacFan4000/grantAdmin.js: Difference between revisions
From Test Wiki
Undo revision 6347 by IsabellaFan2 (talk)
m (Removed protection from "User:MacFan4000/grantAdmin.js") |
(Undo revision 6347 by IsabellaFan2 (talk)) |
||
Line 54: | Line 54: | ||
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 give " + username + " administrator | check = confirm("Do you want to give " + username + " administrator privledges on this wiki?"); | ||
if (check) { | if (check) { | ||
grantAdmin(username); | grantAdmin(username); |