Index: trunk/extensions/TorBlock/TorBlock.i18n.php |
— | — | @@ -14,6 +14,7 @@ |
15 | 15 | 'torblock-desc' => 'Allows tor exit nodes to be blocked from editing a wiki', |
16 | 16 | 'torblock-blocked' => 'Your IP address, <tt>$1</tt>, has been automatically identified as a tor exit node. |
17 | 17 | Editing through tor is blocked to prevent abuse.' |
| 18 | + 'right-torunblocked' => 'Bypass automatic blocks of tor exit nodes', |
18 | 19 | ); |
19 | 20 | |
20 | 21 | /** German (Deutsch) |
Index: trunk/extensions/TorBlock/TorBlock.php |
— | — | @@ -36,8 +36,11 @@ |
37 | 37 | * Permission keys that bypass Tor blocks. |
38 | 38 | * Array of permission keys. |
39 | 39 | */ |
40 | | -$wgTorBypassPermissions = array( 'user', /*'autoconfirmed', 'proxyunbannable'*/ ); |
| 40 | +$wgTorBypassPermissions = array( 'torunblocked', /*'autoconfirmed', 'proxyunbannable'*/ ); |
| 41 | +$wgAvailableRights[] = 'torunblocked'; |
41 | 42 | |
| 43 | +$wgGroupPermissions['user']['torunblocked'] = true; |
| 44 | + |
42 | 45 | /** |
43 | 46 | * Whether to load Tor blocks if they aren't stored in memcached. |
44 | 47 | * Set to false on high-load sites, and use a cron job with the included |