diff --git a/MonoBookTemplate.php b/MonoBookTemplate.php index adffa58..c4ff806 100644 --- a/MonoBookTemplate.php +++ b/MonoBookTemplate.php @@ -119,7 +119,17 @@ class MonoBookTemplate extends BaseTemplate {
html( 'userlangattributes' ) ?>> - getPersonalTools() as $key => $item ) { ?> + getSkin()->getUser()->isLoggedIn() && + User::groupHasPermission( '*', 'edit' ) ) { + + echo Html::rawElement( 'li', array( + 'id' => 'pt-anonuserpage' + ), $this->getMsg( 'notloggedin' )->escaped() ); + + } + + foreach ( $this->getPersonalTools() as $key => $item ) { ?> makeListItem( $key, $item ); ?>