Nonaccesable extension menu options dsplayed as text instead of link
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 10 Oct 2009 12:23:07 +0000 (12:23 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 10 Oct 2009 12:23:07 +0000 (12:23 +0000)
applications/customers.php
applications/dimensions.php
applications/generalledger.php
applications/inventory.php
applications/manufacturing.php
applications/setup.php
applications/suppliers.php

index eb3f9812671060a544cd150ca411a1f406d8a616..20e3e212940bc132ee81d9f8ebcd8efaea02dc14 100644 (file)
@@ -56,7 +56,9 @@
                                foreach ($installed_extensions as $mod)
                                {
                                        if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "orders")
-                                               $this->add_rapp_function(2, $mod["title"], "modules/".$mod["path"]."/".$mod["filename"]."?");
+                                               $this->add_rapp_function(2, $mod["title"], 
+                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
                                }
                        }       
                }
index b30d11dc0053fbb720aef55c7dea40ecf075c7bb..66f628db33558facabd943eb98a5442eb0d196f0 100644 (file)
@@ -36,7 +36,9 @@
                                                {
                                                        if ($i++ == 0)
                                                                $this->add_module(_("Maintenance"));
-                                                       $this->add_rapp_function(2, $mod["title"], "modules/".$mod["path"]."/".$mod["filename"]."?");
+                                                       $this->add_rapp_function(2, $mod["title"], 
+                                                               "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                                               isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
                                                }
                                        }
                                }
index 4b72f8b80e1987c6d6f27eeb794554528ad84236..1b1690af81a29359fb4094119014b66a948f3b1c 100644 (file)
@@ -48,7 +48,9 @@
                                foreach ($installed_extensions as $mod)
                                {
                                        if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "GL")
-                                               $this->add_rapp_function(2, $mod["title"], "modules/".$mod["path"]."/".$mod["filename"]."?");
+                                               $this->add_rapp_function(2, $mod["title"], 
+                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
                                }
                        }       
                }
index caeaf378d446dcde4c11cdf2751c773c04e899a7..7a892dd554eb75283a2eb95d814bfa18dc1eda61 100644 (file)
@@ -44,7 +44,9 @@
                                foreach ($installed_extensions as $mod)
                                {
                                        if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "stock")
-                                               $this->add_rapp_function(2, $mod["title"], "modules/".$mod["path"]."/".$mod["filename"]."?");
+                                               $this->add_rapp_function(2, $mod["title"], 
+                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
                                }
                        }       
                }
index fba05a7d7a824d8603890d752f1d4009d1e23cb4..fc8e5a8e639184f6ea41b7a24d5f8005b91c76e9 100644 (file)
@@ -34,7 +34,9 @@
                                foreach ($installed_extensions as $mod)
                                {
                                        if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "manuf")
-                                               $this->add_rapp_function(2, $mod["title"], "modules/".$mod["path"]."/".$mod["filename"]."?");
+                                               $this->add_rapp_function(2, $mod["title"], 
+                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
                                }
                        }
                }
index 747b23d8c6c8ba7247c655f1a1de3ac683c8bc0e..892b67f2a4dbbcd1cdf2a2ea8d8bbb098ab78758 100644 (file)
@@ -49,7 +49,9 @@
                                foreach ($installed_extensions as $mod)
                                {
                                        if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "system")
-                                               $this->add_rapp_function(2, $mod["title"], "modules/".$mod["path"]."/".$mod["filename"]."?");
+                                               $this->add_rapp_function(2, $mod["title"], 
+                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
                                }
                        }
                }
index f7c529e5de173f714ec353d78f6629f752b6e6d1..68595a8f94aa5d48dad418eaead52c1ad1f04a96 100644 (file)
@@ -40,7 +40,9 @@
                                foreach ($installed_extensions as $mod)
                                {
                                        if (@$mod['active'] && $mod['type'] == 'plugin' && $mod["tab"] == "AP")
-                                               $this->add_rapp_function(2, $mod["title"], "modules/".$mod["path"]."/".$mod["filename"]."?");
+                                               $this->add_rapp_function(2, $mod["title"], 
+                                                       "modules/".$mod["path"]."/".$mod["filename"]."?",
+                                                       isset($mod["access"]) ? $mod["access"] : 'SA_OPEN' );
                                }
                        }       
                }