CRM-16836 - Check permissions in CRM_Core_Form::addSelect
authorColeman Watts <coleman@civicrm.org>
Fri, 17 Jul 2015 20:08:22 +0000 (16:08 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 17 Jul 2015 20:08:22 +0000 (16:08 -0400)
CRM/Core/Form.php

index 76cc6ba2d1047fb2ab5c8114dcc5993c4d12ae4a..bfd99ab3111e5dfc519367435aeb1e76b7df5cad 100644 (file)
@@ -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)) {