fix preview form while logged in bug

This commit is contained in:
David Baldwynn 2017-04-03 14:26:35 -07:00
parent 9ab605edbc
commit 901bf840ee
No known key found for this signature in database
GPG key ID: 15D1C13202224A9B

View file

@ -176,7 +176,7 @@ exports.uploadTemp = function(req, res) {
exports.readForRender = function(req, res) {
var newForm = req.form.toJSON();
if (!newForm.isLive) {
if (!newForm.isLive && !req.user) {
return res.status(404).send({
message: 'Form Does Not Exist'
});