Page MenuHomePhabricator

bug33117-v2.patch

Authored By
• bzimport
Nov 22 2014, 12:01 AM
Size
596 B
Referenced Files
None
Subscribers
None

bug33117-v2.patch

Index: includes/api/ApiQueryRevisions.php
===================================================================
--- includes/api/ApiQueryRevisions.php (revision 105848)
+++ includes/api/ApiQueryRevisions.php (working copy)
@@ -131,7 +131,7 @@
if ( !$difftoRev ) {
$this->dieUsageMsg( array( 'nosuchrevid', $params['diffto'] ) );
}
- if ( !$difftoRev->userCan( Revision::DELETED_TEXT ) ) {
+ if ( $difftoRev->isDeleted( Revision::DELETED_TEXT ) ) {
$this->setWarning( "Couldn't diff to r{$difftoRev->getID()}: content is hidden" );
$params['diffto'] = null;
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8019
Default Alt Text
bug33117-v2.patch (596 B)

Event Timeline