Skip to content

Commit

Permalink
Skip the explicit revision access check
Browse files Browse the repository at this point in the history
This is now handled in getFormat for each request, so we don't have to do this
for the transform end points any more.
  • Loading branch information
gwicke committed Feb 13, 2015
1 parent 8cc6cea commit 9e73718
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions mods/parsoid.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,11 @@ PSP.transformRevision = function (restbase, req, from, to) {
});
}

// Get the revision info just to make sure we have access
return self.getRevisionInfo(restbase, req)
.then(function(revInfo) {
return Promise.props({
html: get('html'),
// wikitext: get('wikitext'),
'data-parsoid': get('data-parsoid')
});
})
return Promise.props({
html: get('html'),
// wikitext: get('wikitext'),
'data-parsoid': get('data-parsoid')
});
.then(function (original) {
original.revid = rp.revision;
var body2 = {
Expand Down

0 comments on commit 9e73718

Please sign in to comment.