Commit cebb7656 authored by Amos Latteier's avatar Amos Latteier

Store the permission in meta_types. This facilitates a filtered product add...

Store the permission in meta_types. This facilitates a filtered product add list. Note: control panel products and old style product registration do not add a permission key in the meta_types.
parent 08c08c82
...@@ -199,7 +199,8 @@ class ProductContext: ...@@ -199,7 +199,8 @@ class ProductContext:
Products.meta_types=Products.meta_types+( Products.meta_types=Products.meta_types+(
{ 'name': meta_type or instance_class.meta_type, { 'name': meta_type or instance_class.meta_type,
'action': ('manage_addProduct/%s/%s' % (pid, name)), 'action': ('manage_addProduct/%s/%s' % (pid, name)),
'product': pid 'product': pid,
'permission': permission,
},) },)
m[name]=initial m[name]=initial
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment