From: Julia Longtin Date: Fri, 8 Feb 2013 16:06:16 +0000 (+0000) Subject: Documentation corrections, and disable just the display of the ACL ID in cases of... X-Git-Tag: whats-been-changed~343^2~33 X-Git-Url: https://repo.or.cz/w/openemr.git/commitdiff_plain/c0f4842dfa394a1f242e6359eeb7d02b26ebc214 Documentation corrections, and disable just the display of the ACL ID in cases of $return_all. --- diff --git a/gacl/gacl.class.php b/gacl/gacl.class.php index bd6e3a432..b4f301710 100644 --- a/gacl/gacl.class.php +++ b/gacl/gacl.class.php @@ -318,8 +318,8 @@ class gacl { * * @param string The ACO section value * @param string The ACO value - * @param string The ARO section value (optional) - * @param string The ARO value (optional) + * @param string The ARO section value + * @param string The ARO value * @param string The AXO section value (optional) * @param string The AXO value (optional) * @param string The value of the ARO group (optional) @@ -548,8 +548,13 @@ class gacl { $this->put_cache($retarr, $cache_id); } - if (!$return_all) { - $this->debug_text("acl_query(): ACO Section: $aco_section_value ACO Value: $aco_value ARO Section: $aro_section_value ARO Value $aro_value ACL ID: ". $retarr['acl_id'] .' Result: '. $retarr['allow']); + if ($return_all) + { + $this->debug_text("acl_query(): ACO Section: $aco_section_value ACO Value: $aco_value ARO Section: $aro_section_value ARO Value $aro_value ACL ID: OMITTED due to return_all"); + } + else + { + $this->debug_text("acl_query(): ACO Section: $aco_section_value ACO Value: $aco_value ARO Section: $aro_section_value ARO Value $aro_value ACL ID: ". $retarr['acl_id'] .' Result: '. $retarr['allow']); } return $retarr;