Index: trunk/extensions/ArticleFeedback/modules/ext.articleFeedback/ext.articleFeedback.js |
— | — | @@ -280,7 +280,7 @@ |
281 | 281 | var groups = mw.config.get( 'wgUserGroups' ); |
282 | 282 | // Verify that each restriction exists in the user's groups |
283 | 283 | for ( var i = 0; i < restrictions.length; i++ ) { |
284 | | - if ( !$.inArray( restrictions[i], groups ) ) { |
| 284 | + if ( $.inArray( restrictions[i], groups ) < 0 ) { |
285 | 285 | return false; |
286 | 286 | } |
287 | 287 | } |