Index: trunk/extensions/Resign/SpecialResign.php |
— | — | @@ -19,10 +19,8 @@ |
20 | 20 | ); |
21 | 21 | |
22 | 22 | # Add resign permission for every group set in the database |
23 | | -foreach( $wgGroupPermissions as $key => $value ) { |
24 | | - if( !in_array( $key, $wgImplicitGroups ) ) { |
25 | | - $wgGroupPermissions[$key]['resign'] = true; |
26 | | - } |
| 23 | +foreach( User::getAllGroups() as $group ) { |
| 24 | + $wgGroupPermissions[$group]['resign'] = true; |
27 | 25 | } |
28 | 26 | |
29 | 27 | # Add log action |