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

index ceb556fecaade6fc1164486ce43087df71502a51..2cc9e47e1e4394435e8da85f4b85a3b157b78e64 100644 (file)
@@ -462,9 +462,8 @@ tabbed_content_start('tabs', array(
                        $_SESSION["wa_current_user"]->can_access_page('SA_REORDER') ? $stock_id : null)),
                'movement' => array(_('&Transactions'), 
                        ($_SESSION["wa_current_user"]->can_access_page('SA_ITEMSTRANSVIEW') ? $stock_id : null)),
-               'status' => array(_('&Status'), $stock_id),
-               //'status' => array(_('&Status'), 
-               //      ($_SESSION["wa_current_user"]->can_access_page('SA_ITEMSSTATVIEW') ? $stock_id : null)),
+               'status' => array(_('&Status'), 
+                       ($_SESSION["wa_current_user"]->can_access_page('SA_ITEMSSTATVIEW') ? $stock_id : null)),
        ));
        
        switch (get_post('_tabs_sel')) {
index 0dd141650f64203d2f864004ae8fd926f0d11728..8f03de7f743e24fd4678e7b8761bc6bfee677549 100644 (file)
@@ -467,7 +467,7 @@ var inserts = {
 // ?  var modifiedurl=ulistlink.getAttribute("href").replace(/^http:\/\/[^\/]+\//i, "http://"+window.location.hostname+"/")
                    var url = tab.form.action
                    tab.onclick=function(){
-                   if (!_hotkeys.alt && !tab.disabled)
+                   if (!_hotkeys.alt && !this.disabled)
                                _expand(this);
                        return false;
                    }
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')) {
index 87953187dd25869c18b6d0a5b2f03011d100df90..a14bd2058bb09bbed4295be9a04a2210985408e8 100644 (file)
@@ -349,7 +349,8 @@ tabbed_content_start('tabs', array(
                'contacts' => array(_('&Contacts'), $selected_id),
                'transactions' => array(_('&Transactions'), 
                        ($_SESSION["wa_current_user"]->can_access_page('SA_SALESTRANSVIEW') ? $selected_id : null)),
-               'orders' => array(_('Sales &Orders'), $selected_id),
+               'orders' => array(_('Sales &Orders'), 
+                       ($_SESSION["wa_current_user"]->can_access_page('SA_SALESTRANSVIEW') ? $selected_id : null)),
        ));
        
        switch (get_post('_tabs_sel')) {