includes/pageutils.php
changeset 690 aeac05b5b7ca
parent 685 17ebe24cdf85
child 696 bd5069e1f19a
--- 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;"
                 );