Allow automatic updates

This commit is contained in:
Aron Carroll 2012-05-03 20:57:05 +01:00
parent f3ea6fe9e7
commit 92f2362452

View File

@ -161,8 +161,8 @@ module.exports = handlers = {
html: editPermalink,
js: editPermalink,
title: utils.titleForBin(bin),
allowUpdate: false,
checksum: req.streamingKey
allowUpdate: !!bin.streamingKey,
checksum: bin.streamingKey
});
} else {
res.redirect(303, req.helpers.url(bin.url + '/' + bin.revision + '/edit'));