Tabbed dialogs allowed non access pages.
[fa-stable.git] / purchasing / manage / suppliers.php
index d17950c4800b9ecfe7fd3fcddb55a298a2669a66..4b675c8a6c9fca0ac8782d5f867e604fbfb80e57 100644 (file)
@@ -308,7 +308,7 @@ 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'), (user_check_access('SA_SUPPTRANSVIEW') ? $supplier_id : null)),
                'orders' => array(_('Purchase &Orders'), $supplier_id),
        ));