fix preview form while logged in bug
This commit is contained in:
parent
9ab605edbc
commit
901bf840ee
|
@ -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'
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue