bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1460335 - /incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/product_admin.py
Date Sun, 24 Mar 2013 12:28:38 GMT
Author: jure
Date: Sun Mar 24 12:28:38 2013
New Revision: 1460335

URL: http://svn.apache.org/r1460335
Log:
#430, default product admin panel white list, patch t430_r1458841_product_admin_defaults.diff
applied (from Olemis)


Modified:
    incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/product_admin.py

Modified: incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/product_admin.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/product_admin.py?rev=1460335&r1=1460334&r2=1460335&view=diff
==============================================================================
--- incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/product_admin.py
(original)
+++ incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/product_admin.py
Sun Mar 24 12:28:38 2013
@@ -261,3 +261,17 @@ class ProductAdminModule(Component):
         return cat_allow is not False and panel_allow is not False \
                and (cat_allow, panel_allow) != (None, None) \
                and (cat_id, panel_id) != ('general', 'plugin') # double-check !
+
+
+class DefaultProductAdminWhitelist(Component):
+    implements(IProductAdminAclContributor)
+
+    # IProductAdminAclContributor methods
+    def enable_product_admin_panels(self):
+        yield 'general', 'basics'
+        yield 'general', 'perm'
+        yield 'accounts', 'notification'
+        # FIXME: Include users admin panel ?
+        #yield 'accounts', 'users'
+        yield 'ticket', '*'
+        yield 'versioncontrol', 'repository'



Mime
View raw message