The 'deletedhistory' is needed to access Special:RevisionDelete
and LogEventsList already checks for that right, but not
Special:Log. This caused the user to see "Hide log entries"
buttons when they had the 'deletelogentry' but not the
'deletedhistory', which was not correct.
Change-Id: Ie6274b30ffb98e2376d14e6fcac525f901d14f3d
private function getRevisionButton( $formcontents ) {
# If the user doesn't have the ability to delete log entries, don't bother showing him/her the button.
- if ( !$this->getUser()->isAllowed( 'deletelogentry' ) ) {
+ if ( !$this->getUser()->isAllowedAll( 'deletedhistory', 'deletelogentry' ) ) {
return $formcontents;
}