Commits

Jure Žitnik  committed fc3e35d Draft

#492, patch t492_r1465566_req_product_perm_v2.diff fix ...

git-svn-id: https://svn.apache.org/repos/asf/bloodhound/trunk@146680813f79535-47bb-0310-9956-ffa450edef68

  • Participants
  • Parent commits 28d2041

Comments (0)

Files changed (1)

File bloodhound_theme/bhtheme/theme.py

             href_fcn = req.href.products
         product_list = []
         for product in Product.select(self.env):
-            if 'PRODUCT_VIEW' in req.perm(Neighborhood('product', prefix).
+            if 'PRODUCT_VIEW' in req.perm(Neighborhood('product', product.prefix).
                                           child(product.resource)):
                 product_list.append((product.prefix, product.name,
                     href_fcn(product.prefix)))