Return-Path: X-Original-To: apmail-incubator-allura-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-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 B7E9E10933 for ; Fri, 26 Apr 2013 20:32:22 +0000 (UTC) Received: (qmail 66758 invoked by uid 500); 26 Apr 2013 20:32:22 -0000 Delivered-To: apmail-incubator-allura-commits-archive@incubator.apache.org Received: (qmail 66727 invoked by uid 500); 26 Apr 2013 20:32:22 -0000 Mailing-List: contact allura-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-commits@incubator.apache.org Received: (qmail 66711 invoked by uid 99); 26 Apr 2013 20:32:22 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Apr 2013 20:32:22 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 67E1A88259F; Fri, 26 Apr 2013 20:32:22 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: brondsem@apache.org To: allura-commits@incubator.apache.org Date: Fri, 26 Apr 2013 20:32:23 -0000 Message-Id: <4f6498ed21d74799827c875ad511e957@git.apache.org> In-Reply-To: <8ebb55f9ec8842a48c4d50b105757206@git.apache.org> References: <8ebb55f9ec8842a48c4d50b105757206@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [2/2] git commit: [#5294] ticket:320 Check permissions on project REST controller [#5294] ticket:320 Check permissions on project REST controller Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/c8311bbe Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/c8311bbe Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/c8311bbe Branch: refs/heads/master Commit: c8311bbe6cec1b58edfc8ef577e0c1f992f45ac5 Parents: 974fa9f Author: Igor Bondarenko Authored: Mon Apr 22 09:26:53 2013 +0000 Committer: Dave Brondsema Committed: Fri Apr 26 20:31:33 2013 +0000 ---------------------------------------------------------------------- Allura/allura/controllers/rest.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/c8311bbe/Allura/allura/controllers/rest.py ---------------------------------------------------------------------- diff --git a/Allura/allura/controllers/rest.py b/Allura/allura/controllers/rest.py index c90a1ef..cf03733 100644 --- a/Allura/allura/controllers/rest.py +++ b/Allura/allura/controllers/rest.py @@ -281,5 +281,5 @@ class ProjectRestController(object): return dict( name=c.project.shortname, tools=[dict(name=t.tool_name, mount_point=t.options.mount_point, label=t.options.mount_label) - for t in c.project.app_configs] + for t in c.project.app_configs if h.has_access(t, 'read')] )