From nobody Fri May 3 21:17:56 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1520495511261614.1437409328788; Wed, 7 Mar 2018 23:51:51 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4EACCC057F85; Thu, 8 Mar 2018 07:51:50 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4153D5D6A6; Thu, 8 Mar 2018 07:51:50 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 366694CA98; Thu, 8 Mar 2018 07:51:50 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w287pn45030774 for ; Thu, 8 Mar 2018 02:51:49 -0500 Received: by smtp.corp.redhat.com (Postfix) id F2A79608F2; Thu, 8 Mar 2018 07:51:48 +0000 (UTC) Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EA0486A03A for ; Thu, 8 Mar 2018 07:51:46 +0000 (UTC) Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E6780C049D5C for ; Thu, 8 Mar 2018 07:51:45 +0000 (UTC) Received: by mail-wr0-f195.google.com with SMTP id v18so4653423wrv.0 for ; Wed, 07 Mar 2018 23:51:45 -0800 (PST) Received: from donizetti.lan (94-36-191-219.adsl-ull.clienti.tiscali.it. [94.36.191.219]) by smtp.gmail.com with ESMTPSA id e18sm22302333wmc.21.2018.03.07.23.51.43 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Mar 2018 23:51:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id; bh=Oshb0/D+AeIZnoOh57gVx1+cSyTUpSN1LFCxyBEwbMY=; b=qP/YGO6Ap7C6q+/rZdomSCnmZ865P7q6Rm1viBQ0GlB4SB8QSIp4m8Qn81a+1RUpVZ SRxmt7vZQ+/hOcY8T2fcvdtX8pmX3cDOTm1OOXFnz5SIuMfaAesgxubKj90FfM1hNifD 6VAdOffvh9Sk2kGGb8WICopUkMgh1QfVWhK75LSDcs7nsko2FBBFPPJJxyZIUclcV2rn AMrS2z+KvlIRYcH1ir9SEpKYEplOKm7YOea3ZpNzPXOaS9uGaCmYvJwsvJYJMFeZUoIF KUm3lRuH/7uxoJTiYsWa3dQOWE/9LYswUX0OAhIfmYxdPtFmwoa+b4RB0ApSH7kPvhhr ZGaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id; bh=Oshb0/D+AeIZnoOh57gVx1+cSyTUpSN1LFCxyBEwbMY=; b=od/mHhkwLEVSNtR4tYbQc1IW3ES5ZkXEoggnpNmoWJQ+UN8HdgQPCNRmKf+uRVLDpm NCP2ZuYsnzDSSt7y6lgGF85xpd63f4b+3CmsnoBJnPI105lL1HfDlmap/rUFvQfCbtLY G4677WoPvWeSzXRIWKDaCWzRnhW5q1NK+vJiaxvLslvOdlGTaSkUvCihYWTOwYxBq3tL Q3g8e885kYjOfe7I4Qwgu62QGYWu2jucp+cT+6l9/YEZ44nOQcOHmb0OaYGBKsH6S0qv a0G3yRM1ru3fqU4H3Voa4wMv4b1e+cyW3v5fo2DNLeMAre8X3ssnIOaFK2Uozd2cYTHw vyBg== X-Gm-Message-State: APf1xPAKHqSt3bya91QfHTwXV+PmgOr4epvRwbZbLRPIvwlbdsgNABzl nkgPFauEIyF7pCFzv6tTexgtG+9i X-Google-Smtp-Source: AG47ELsyftynJm6UMttA5Niv7VnzrV3DMOSGUSaop7w0nN8E/o1flZ7DRr1Dj6MuhuYTqoTvURrvfQ== X-Received: by 10.223.136.236 with SMTP id g41mr21436405wrg.103.1520495504149; Wed, 07 Mar 2018 23:51:44 -0800 (PST) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Thu, 8 Mar 2018 08:51:43 +0100 Message-Id: <20180308075143.18626-1-pbonzini@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 08 Mar 2018 07:51:46 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Thu, 08 Mar 2018 07:51:46 +0000 (UTC) for IP:'209.85.128.195' DOMAIN:'mail-wr0-f195.google.com' HELO:'mail-wr0-f195.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.488 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.128.195 mail-wr0-f195.google.com 209.85.128.195 mail-wr0-f195.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.78 on 10.5.110.31 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] git: require maintainership to edit configuration X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 08 Mar 2018 07:51:50 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" git info must not be visible without authentication. Use maintained_by as in other prepare_project_hook Fixes: f845f6359ae939d72c40db46710d676755944b0a Signed-off-by: Paolo Bonzini --- mods/git.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/git.py b/mods/git.py index df4185a..cda42dd 100644 --- a/mods/git.py +++ b/mods/git.py @@ -193,6 +193,8 @@ class GitModule(PatchewModule): }) =20 def prepare_project_hook(self, request, project): + if not project.maintained_by(request.user): + return project.extra_info.append({"title": "Git configuration", "class": "info", "content_html": self.build_config_html(= request, --=20 2.14.3 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel