Index: trunk/extensions/SemanticMediaWiki/includes/SMW_RefreshTab.php |
— | — | @@ -9,7 +9,9 @@ |
10 | 10 | * This line must be present before any global variable is referenced. |
11 | 11 | */ |
12 | 12 | if ( !defined( 'MEDIAWIKI' ) ) die(); |
| 13 | + |
13 | 14 | global $wgHooks; |
| 15 | + |
14 | 16 | $wgHooks[ 'SkinTemplateTabs' ][] = 'smwfAddRefreshTab'; // basic tab addition |
15 | 17 | $wgHooks[ 'SkinTemplateNavigation' ][] = 'smwfAddStructuredRefreshTab'; // structured version for "Vector"-type skins |
16 | 18 | |
— | — | @@ -19,7 +21,7 @@ |
20 | 22 | */ |
21 | 23 | function smwfAddRefreshTab( $skin, &$content_actions ) { |
22 | 24 | global $wgUser; |
23 | | - if ( $wgUser->isAllowed( 'delete' ) ) { |
| 25 | + if ( $wgUser->isAllowed( 'purge' ) ) { |
24 | 26 | smwfLoadExtensionMessages( 'SemanticMediaWiki' ); |
25 | 27 | $content_actions['purge'] = array( |
26 | 28 | 'class' => false, |
— | — | @@ -39,5 +41,4 @@ |
40 | 42 | smwfAddRefreshTab( $skin, $actions ); |
41 | 43 | $links['actions'] = $actions; |
42 | 44 | return true; |
43 | | -} |
44 | | - |
| 45 | +} |
\ No newline at end of file |