Index: trunk/extensions/ArticleCreationWorkflow/ArticleCreationWorkflow.hooks.php |
— | — | @@ -84,7 +84,8 @@ |
85 | 85 | public static function SpecialSearchCreateLink( $title, &$params ) { |
86 | 86 | global $wgOut, $wgHooks; |
87 | 87 | |
88 | | - if ( ArticleCreationUtil::isEnabled() ) { |
| 88 | + if ( ArticleCreationUtil::isEnabled() && $title->userCan( 'create' ) && |
| 89 | + $title->userCan('edit') ) { |
89 | 90 | $wgHooks['MakeGlobalVariablesScript'][] = 'ArticleCreationHooks::configSearchTitle'; |
90 | 91 | $wgOut->addModules( array( 'ext.articleCreation.searchResult' ) ); |
91 | 92 | } |