From nobody Tue Apr 23 20:35:19 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 1520491294810264.8389530889732; Wed, 7 Mar 2018 22:41:34 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id D37F581DEA; Thu, 8 Mar 2018 06:41:33 +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 C777A5C20C; Thu, 8 Mar 2018 06:41:33 +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 BF0004CA98; Thu, 8 Mar 2018 06:41:33 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w286fWxn015765 for ; Thu, 8 Mar 2018 01:41:32 -0500 Received: by smtp.corp.redhat.com (Postfix) id 6F138424B; Thu, 8 Mar 2018 06:41:32 +0000 (UTC) Received: from mx1.redhat.com (ext-mx02.extmail.prod.ext.phx2.redhat.com [10.5.110.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6AB8C620A0 for ; Thu, 8 Mar 2018 06:41:29 +0000 (UTC) Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) (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 B0A1785A02 for ; Thu, 8 Mar 2018 06:41:28 +0000 (UTC) Received: by mail-wr0-f194.google.com with SMTP id o8so4529479wra.1 for ; Wed, 07 Mar 2018 22:41:28 -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 a1sm20535087wra.41.2018.03.07.22.41.26 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Mar 2018 22:41:26 -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=gjEY9lJmgG0CODzjDsCDfaXUIz3ZVUB/lDF6iGnnImM=; b=DPgtVQa3wQiRJm8eFZ1ffs3OGT0Qbf+BlUTF6tVzn50JC5ALBcHFj+qm+pLDzwGKua D+V9w1ovZFtmbxye0yU2lsYc/oJKAHM8gxyxj8JkxRCJjqMZr4VpS1sv2Kg0cIY7rAvR 67U785HgNcB7jxzF8rrFOK9QABjde7VOK2tOotaannWaXLN9Q9S6BUgBfa8auvn2lyXZ t7exDr71kfZFIrfv42x+1cNcdZ7MypuQkvSg3LTfQjkVEw4k3dA6Y63fJ+CIPdAw8PwV vc3bzYgEE7WuwqCX9onIesBox6p7L56CNi2EHWlcR3mBhoPUqPsfMR5VLSp9Y79EkfXL ARww== 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=gjEY9lJmgG0CODzjDsCDfaXUIz3ZVUB/lDF6iGnnImM=; b=WEieQClZeiDDr0+LsZ1zz5FDnWbzE3Din8xKisRis1TuqC+nGIViWSKviYW1F6sJMp Z3HMtZwmaU5BrdEYEompWiF5ni4pYlkMdrCVOrgFNn92McLQR54MARdnOZEywIIXEQDX o/ByPl+U6W/wPVBMoK8bmUB9gfGshs+EUm7YyKzvoUjTrAIggGNHu3odjZ+8+QlHuSJF GPY/TeDYkZf3fUub8r9S+eBONEO5rQg1dU9L3XCxsLLWl7pAqJpnp7QnNs4BcudqZLRw ipVZaoPoN2K/FuEjnjQ7phMt9t230UbBAPXYQNvmzDWal9JNDAsoaEhIqcjwHmQGDZ+4 aB/w== X-Gm-Message-State: APf1xPArcWORhcygsR0ucZQhR1OuTQ8F58/bE6tofwQeoXshzrrnmC8C 1BCZT0jj8rHjHnjpeHxP0UdVBRFX X-Google-Smtp-Source: AG47ELursHyzF7irx8Y4w2SuT2uUjdJRQMnxklEMUfEDVlbWJANCx/iDEFsZ6pyTdr2N671ZdUBCkg== X-Received: by 10.223.135.136 with SMTP id b8mr21145317wrb.72.1520491287058; Wed, 07 Mar 2018 22:41:27 -0800 (PST) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Thu, 8 Mar 2018 07:41:25 +0100 Message-Id: <20180308064126.17240-1-pbonzini@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 08 Mar 2018 06:41:28 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Thu, 08 Mar 2018 06:41:28 +0000 (UTC) for IP:'209.85.128.194' DOMAIN:'mail-wr0-f194.google.com' HELO:'mail-wr0-f194.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.194 mail-wr0-f194.google.com 209.85.128.194 mail-wr0-f194.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.78 on 10.5.110.26 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] git: do not require superuser permissions 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.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 08 Mar 2018 06:41:33 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail-Owner: <20180308064126.17240-1-pbonzini@redhat.com>+zmo_0_patchew-devel-bounces@redhat.com X-ZohoMail-Sender: 94.36.191.219 X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Currently, mods/git.py only shows the config box to superusers. This was a mistake, so fix it. Signed-off-by: Paolo Bonzini --- Applied. mods/git.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mods/git.py b/mods/git.py index b0df7e8..df4185a 100644 --- a/mods/git.py +++ b/mods/git.py @@ -193,8 +193,6 @@ class GitModule(PatchewModule): }) =20 def prepare_project_hook(self, request, project): - if not request.user.is_superuser: - 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