Author: gjm
Date: Tue Nov 27 01:06:37 2012
New Revision: 1413964

URL: http://svn.apache.org/viewvc?rev=1413964&view=rev
Log:
fixing wrong permission in rendering product description - fixes #254 (from 
olemis)

Modified:
    incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/api.py

Modified: incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/api.py
URL: 
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/api.py?rev=1413964&r1=1413963&r2=1413964&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/api.py 
(original)
+++ incubator/bloodhound/trunk/bloodhound_multiproduct/multiproduct/api.py Tue 
Nov 27 01:06:37 2012
@@ -168,7 +168,7 @@ class MultiProductSystem(Component):
             href = context.href.products(product.prefix)
             if 'PRODUCT_VIEW' in context.perm(product.resource):
                 return tag.a(label, class_='product', href=href + extra)
-        elif 'MILESTONE_CREATE' in context.perm('product', name):
+        elif 'PRODUCT_CREATE' in context.perm('product', name):
             return tag.a(label, class_='missing product', 
                     href=context.href('products', action='new'),
                     rel='nofollow')


Reply via email to