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 161f590
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions mods/parsoid.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,10 @@ 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;
Expand Down

0 comments on commit 161f590

Please sign in to comment.