}
private function getRevisionButton( $formcontents ) {
- # If the user doesn't have the ability to delete revisions, don't bother showing him/her the button.
- if ( !$this->getUser()->isAllowed( 'deleterevision' ) ) {
+ # If the user doesn't have the ability to delete log entries, don't bother showing him/her the button.
+ if ( !$this->getUser()->isAllowedAll( 'deletedhistory', 'deletelogentry' ) ) {
return $formcontents;
}