From: Coleman Watts Date: Fri, 17 Jul 2015 20:08:22 +0000 (-0400) Subject: CRM-16836 - Check permissions in CRM_Core_Form::addSelect X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=9f71f1ff305aa1a8cfe54efb78e17f19a0b323f3;p=civicrm-core.git CRM-16836 - Check permissions in CRM_Core_Form::addSelect --- diff --git a/CRM/Core/Form.php b/CRM/Core/Form.php index 76cc6ba2d1..bfd99ab311 100644 --- a/CRM/Core/Form.php +++ b/CRM/Core/Form.php @@ -1061,7 +1061,7 @@ class CRM_Core_Form extends HTML_QuickForm_Page { $options = $props['options']; } else { - $info = civicrm_api3($props['entity'], 'getoptions', $props); + $info = civicrm_api3($props['entity'], 'getoptions', $props + array('check_permissions' => 1)); $options = $info['values']; } if (!array_key_exists('placeholder', $props)) {