Skip to content

Commit

Permalink
Merge pull request civicrm#19 from dlobo/CRM-12636
Browse files Browse the repository at this point in the history
CRM-12636
  • Loading branch information
dlobo committed May 15, 2013
2 parents 083998a + da7ad90 commit 49703e3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion civicrm.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 49703e3

Please sign in to comment.