Allow users with deleterevision but not deletedhistory to delete revisions
authorLuke Faraone <luke@faraone.cc>
Sun, 6 Mar 2016 00:04:37 +0000 (00:04 +0000)
committerLuke Faraone <luke@faraone.cc>
Sun, 6 Mar 2016 00:06:06 +0000 (00:06 +0000)
commit3ad3e00bda3a4c017d166a7082e5b13d696accdf
treeeeb9b829a662d3bb1413193da218f1046f588849
parent7ab19abd82900d4d3936d49d1dfe176064756558
Allow users with deleterevision but not deletedhistory to delete revisions

Previously, Special:RevisionDelete required that the accessor had
deletedhistory to access it. Instead, we check for `deleterevision`, but
suppress output of the deletion log if the user lacks `deletedhistory`.

This has the side-effect of locking out users who have `deletedhistory` but not
`deleterevision` from accessing this special page, but that information is
available in other logs.

Bug: T128914
Change-Id: I2e194dae84a29c5ace254f55eda63cfe7f86c3ca
includes/specials/SpecialRevisiondelete.php