Fixed ACL_TYPE_PRESET pseudo-rules being shown in rule list
authorDan
Wed, 13 Aug 2008 08:47:20 -0400
changeset 690 aeac05b5b7ca
parent 689 13f8383a7538
child 691 dab7850c098d
Fixed ACL_TYPE_PRESET pseudo-rules being shown in rule list
includes/pageutils.php
--- a/includes/pageutils.php	Wed Aug 13 08:46:46 2008 -0400
+++ b/includes/pageutils.php	Wed Aug 13 08:47:20 2008 -0400
@@ -1870,6 +1870,7 @@
                   . "    ON ( (a.target_type = " . ACL_TYPE_GROUP . " AND a.target_id = g.group_id) OR (g.group_id IS NULL) )\n"
                   . "  LEFT JOIN " . table_prefix . "page_groups as p\n"
                   . "    ON ( (a.namespace = '__PageGroup' AND a.page_id = p.pg_id) OR (p.pg_id IS NULL) )\n"
+                  . "  WHERE ( a.target_type = " . ACL_TYPE_USER . " OR a.target_type = " . ACL_TYPE_GROUP . " )\n"
                   . "  GROUP BY a.rule_id\n"
                   . "  ORDER BY a.target_type ASC, a.rule_id ASC;"
                 );