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

> it hides some elements for those who is not logged in

No, it does not. ;-) Have another look at the condition, which I posted: It does not say if( !$wgUser, but if( $wgUser. This condition will only be met, if a user is logged in.