r1504: Why on earth were we permission checking custom fields in the automation system?
authorRobert Sesek <rsesek@bluestatic.org>
Sun, 18 Mar 2007 19:25:34 +0000 (19:25 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Sun, 18 Mar 2007 19:25:34 +0000 (19:25 +0000)
admin/automation.php

index 4d938e470955136427ede8d4c6fcad05dbdb9b2c..ea317f6833c694635a94b0b19bfcee8adea747bd 100644 (file)
@@ -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'])
                {