From 6b73244db1739af56685642a8c1cb70615e5f4f6 Mon Sep 17 00:00:00 2001 From: git Date: Thu, 14 Aug 2014 17:06:12 -0400 Subject: [PATCH] Issue #2275943 by ladybug_377: Fixed granting access to confirmation page even when submission auto-deleted. --- webform.module | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/webform.module b/webform.module index 29c5862..58bd265 100644 --- a/webform.module +++ b/webform.module @@ -538,6 +538,12 @@ function webform_confirmation_page_access($node) { return TRUE; } } + } else { + // No submission exists (such as auto-deleted by another module, such as + // webform_clear), just ensure that the user has access to view the node page. + if (node_access('view', $node)) { + return TRUE; + } } return FALSE; -- 1.7.8.msysgit.0