Thread:Project:Support desk/How to disable view source tab for anonymous users in mediawiki 1.20/reply (3)

Something like what you want is possible, but the exact way you want it, does not make sense: What should a button be there for, which has no function?

The tab can be removed using a hook in LocalSettings.php. This problem comes up often; the thread "How can I hide tabs for users not logged in?" on this page has it and also includes the way how to solve it.