Rerun. Tabbed dialogs allowed non access pages.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 27 May 2016 10:10:57 +0000 (12:10 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Fri, 27 May 2016 10:10:57 +0000 (12:10 +0200)
purchasing/manage/suppliers.php
sales/manage/customers.php

index 4b675c8a6c9fca0ac8782d5f867e604fbfb80e57..008efbe3c72f551eb5c08db5df2dd2ef56066a62 100644 (file)
@@ -309,7 +309,7 @@ tabbed_content_start('tabs', array(
                'settings' => array(_('&General settings'), $supplier_id),
                'contacts' => array(_('&Contacts'), $supplier_id),
                'transactions' => array(_('&Transactions'), (user_check_access('SA_SUPPTRANSVIEW') ? $supplier_id : null)),
-               'orders' => array(_('Purchase &Orders'), $supplier_id),
+               'orders' => array(_('Purchase &Orders'), (user_check_access('SA_SUPPTRANSVIEW') ? $supplier_id : null)),,
        ));
        
        switch (get_post('_tabs_sel')) {
index a3e11c4db772c57c5899ed5f39fe5315d19e7cfe..d00bfdc04390a90c42fae5f52886c5bf5c3d8e04 100644 (file)
@@ -350,7 +350,7 @@ tabbed_content_start('tabs', array(
                'settings' => array(_('&General settings'), $selected_id),
                'contacts' => array(_('&Contacts'), $selected_id),
                'transactions' => array(_('&Transactions'), (user_check_access('SA_SALESTRANSVIEW') ? $selected_id : null)),
-               'orders' => array(_('Sales &Orders'), $selected_id),
+               'orders' => array(_('Sales &Orders'), (user_check_access('SA_SALESTRANSVIEW') ? $selected_id : null)),
        ));
        
        switch (get_post('_tabs_sel')) {