User:Joepayne/stripRights.js: Difference between revisions

From Test Wiki
Content deleted Content added
Joepayne (talk | contribs)
Try fix
Joepayne (talk | contribs)
Test
Line 15: Line 15:
).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 {
var link = mw.util.addPortletLink(
var link = mw.util.addPortletLink(