Thread:Project:Support desk/How to hide "View History" button for unlogged users?/reply (28)

Hello Mark! I have one more question according to this thread: So I use this code in Localsettings.php function efAddSkinStylesAnon( OutputPage &$out, Skin &$skin ) { if( !$wgUser->isLoggedIn ) { // Hide history tab if ( $skin->getSkinName == 'vector' ) { $out->addInlineStyle( '#ca-history { display:none; }' ); }       }        return true; } $wgHooks['BeforePageDisplay'][] = 'efAddSkinStylesAnon'; What should I add to hide some buttons for those who logged in?