From da7ad90495b2a552d0162cb917727ed32e6b20e0 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Wed, 15 May 2013 13:38:16 -0700 Subject: [PATCH] CRM-12636 ---------------------------------------- * CRM-12636: civicrm/petition/thankyou url should be exposed as a frontend page http://issues.civicrm.org/jira/browse/CRM-12636 --- civicrm.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/civicrm.php b/civicrm.php index 952c39258155..7367187028ec 100644 --- a/civicrm.php +++ b/civicrm.php @@ -543,7 +543,11 @@ function civicrm_check_permission($args) { // allow petition sign in, CRM-7401 if (in_array('CiviCampaign', $config->enableComponents)) { - if ($arg1 == 'petition' && $arg2 == 'sign') { + $validPaths = array('sign', 'thankyou', 'confirm'); + if ( + $arg1 == 'petition' && + in_array($arg2, $validPaths) + ) { return TRUE; } }