Rerun. Tabbed dialogs allowed non access pages.
[fa-stable.git] / purchasing / manage / suppliers.php
index d3e3df360f7da452e65e149067e126c7f36bded2..ec19e9806244ad0762b63fda1185be84fbe85e65 100644 (file)
@@ -308,7 +308,8 @@ tabbed_content_start('tabs', array(
                'contacts' => array(_('&Contacts'), $supplier_id),
                'transactions' => array(_('&Transactions'), 
                        ($_SESSION["wa_current_user"]->can_access_page('SA_SUPPTRANSVIEW') ? $supplier_id : null)),
-               'orders' => array(_('Purchase &Orders'), $supplier_id),
+               'orders' => array(_('Purchase &Orders'), 
+                       ($_SESSION["wa_current_user"]->can_access_page('SA_SUPPTRANSVIEW') ? $supplier_id : null)),
        ));
        
        switch (get_post('_tabs_sel')) {