Return-Path: X-Original-To: apmail-incubator-bloodhound-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-bloodhound-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 937F3FBD7 for ; Sun, 24 Mar 2013 12:29:03 +0000 (UTC) Received: (qmail 44700 invoked by uid 500); 24 Mar 2013 12:29:03 -0000 Delivered-To: apmail-incubator-bloodhound-commits-archive@incubator.apache.org Received: (qmail 44649 invoked by uid 500); 24 Mar 2013 12:29:02 -0000 Mailing-List: contact bloodhound-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bloodhound-dev@incubator.apache.org Delivered-To: mailing list bloodhound-commits@incubator.apache.org Received: (qmail 44629 invoked by uid 99); 24 Mar 2013 12:29:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Mar 2013 12:29:01 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 24 Mar 2013 12:28:59 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 91B742388994; Sun, 24 Mar 2013 12:28:38 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1460335 - /incubator/bloodhound/branches/bep_0003_multiproduct/bloodhound_multiproduct/multiproduct/product_admin.py Date: Sun, 24 Mar 2013 12:28:38 -0000 To: bloodhound-commits@incubator.apache.org From: jure@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130324122838.91B742388994@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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'