From b122c908b6e0aa1dedd92163ae6e8b62057fab6a Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 10 Oct 2009 12:23:07 +0000 Subject: [PATCH] Nonaccesable extension menu options dsplayed as text instead of link --- applications/customers.php | 4 +++- applications/dimensions.php | 4 +++- applications/generalledger.php | 4 +++- applications/inventory.php | 4 +++- applications/manufacturing.php | 4 +++- applications/setup.php | 4 +++- applications/suppliers.php | 4 +++- 7 files changed, 21 insertions(+), 7 deletions(-) diff --git a/applications/customers.php b/applications/customers.php index eb3f9812..20e3e212 100644 --- a/applications/customers.php +++ b/applications/customers.php @@ -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' ); } } } diff --git a/applications/dimensions.php b/applications/dimensions.php index b30d11dc..66f628db 100644 --- a/applications/dimensions.php +++ b/applications/dimensions.php @@ -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' ); } } } diff --git a/applications/generalledger.php b/applications/generalledger.php index 4b72f8b8..1b1690af 100644 --- a/applications/generalledger.php +++ b/applications/generalledger.php @@ -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' ); } } } diff --git a/applications/inventory.php b/applications/inventory.php index caeaf378..7a892dd5 100644 --- a/applications/inventory.php +++ b/applications/inventory.php @@ -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' ); } } } diff --git a/applications/manufacturing.php b/applications/manufacturing.php index fba05a7d..fc8e5a8e 100644 --- a/applications/manufacturing.php +++ b/applications/manufacturing.php @@ -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' ); } } } diff --git a/applications/setup.php b/applications/setup.php index 747b23d8..892b67f2 100644 --- a/applications/setup.php +++ b/applications/setup.php @@ -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' ); } } } diff --git a/applications/suppliers.php b/applications/suppliers.php index f7c529e5..68595a8f 100644 --- a/applications/suppliers.php +++ b/applications/suppliers.php @@ -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' ); } } } -- 2.30.2