* Only show "view" tabs when the user hasn't the permission to read the page and...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 6 Nov 2011 20:30:08 +0000 (20:30 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 6 Nov 2011 20:30:08 +0000 (20:30 +0000)
commitd9582bff04e825cb7667db6f1dc770ef3fa06190
treeb2713fc8d7fa644f23fa9dc675e9d71de5659a5e
parent381309f4743f07a00cd191aeaee02483e65a827c
* Only show "view" tabs when the user hasn't the permission to read the page and put the whole stuff in a $userCanRead check instead of doing that for each check
* Factorise duplicate code (for the "protect" tab generation)
* Use Title::quickUserCan() check for delete and protect actions instead of User::isAllowed()
* Pass the User object to Title::quickUserCan()
includes/SkinTemplate.php