[-] BO : BugFix : #PSCFV-2260 : Admin in one shop can see categories from another shop

This commit is contained in:
vChabot
2012-05-11 13:56:15 +00:00
parent dc0ba0b452
commit e12614065c
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ var id_category_root = 0;
function buildTreeView()
{
use_shop_context = 0;
if (buildTreeView.arguments[0])
if (buildTreeView.arguments[0] && buildTreeView.arguments[0] == 1)
use_shop_context = 1;
$("#categories-treeview").treeview({
url : 'ajax.php',