From a1af2a7e8cebd23288167e0cde33b18556e47042 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 18 Mar 2007 19:25:34 +0000 Subject: [PATCH] r1504: Why on earth were we permission checking custom fields in the automation system? --- admin/automation.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/admin/automation.php b/admin/automation.php index 4d938e4..ea317f6 100644 --- a/admin/automation.php +++ b/admin/automation.php @@ -169,16 +169,8 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') // ------------------------------------------------------------------- // custom fields - $fields_fetch = $bugsys->db->query(" - SELECT bugfield.* - FROM " . TABLE_PREFIX . "bugfield AS bugfield - LEFT JOIN " . TABLE_PREFIX . "bugfieldpermission AS permission - ON (bugfield.fieldid = permission.fieldid) - WHERE permission.mask <> 0 - AND permission.usergroupid = {$bugsys->userinfo['usergroupid']} - AND bugfield.cansearch = 1" - ); - while ($field = $bugsys->db->fetch_array($fields_fetch)) + $fields_fetch = $db->query("SELECT * FROM " . TABLE_PREFIX . "bugfield ORDER BY fieldid ASC"); + while ($field = $db->fetch_array($fields_fetch)) { switch ($field['type']) { -- 2.43.5