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 privleges on this wiki?");
     check = confirm("Do you want to give " + username + " administrator privledges on this wiki?");
if (check) {
if (check) {
grantAdmin(username);
grantAdmin(username);
41

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.