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