From nobody Mon Apr 29 04:17:54 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 1520491295325301.90453776649633; Wed, 7 Mar 2018 22:41:35 -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 36477356D4; Thu, 8 Mar 2018 06:41:34 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 27BA25C20C; Thu, 8 Mar 2018 06:41:34 +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 1BC9C1808850; Thu, 8 Mar 2018 06:41:34 +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 w286fWOC015764 for ; Thu, 8 Mar 2018 01:41:32 -0500 Received: by smtp.corp.redhat.com (Postfix) id 6F1F3620A3; Thu, 8 Mar 2018 06:41:32 +0000 (UTC) Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6A34461353 for ; Thu, 8 Mar 2018 06:41:30 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) (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 BBA062FA for ; Thu, 8 Mar 2018 06:41:29 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id z81so9095162wmb.4 for ; Wed, 07 Mar 2018 22:41:29 -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.27 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Mar 2018 22:41:27 -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=/WqVUAmbtmAMyWauNYJN4w+JRT+r0JMdNdOrHfyPDvM=; b=bfMj+pOaEWFwdVSMC5skycHYvLzMfyafymMUTyZjyOszFrKR6AzESR/9xpFzK/LRxc IY/96yln1v1i4O63+g/kJ17ZgXqy3Sxb74sDy5A85PS7r1skHaHe7rK+OLlfgvsAvGhn /NwUsAn7AY45zTVPNMQxXFcXR87WPsSiu3pGh0WaSPCtqBMl6J7vc6vJVQR2aRZ8zpqf y25UvClsN1pbvZR2guJfTgLXZz7Y0QMBwkHENxdfX2b+BzkMyPlboLkVnjc74MhQ1lLQ twb+2y2T9MkG+pCfreSC/rykFbsu1RfFZP6DA5UwakA0I7n9pKXO7K72uxjRNhxyOTK5 hTDQ== 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=/WqVUAmbtmAMyWauNYJN4w+JRT+r0JMdNdOrHfyPDvM=; b=UyUtGXPcOYySoLdDsjlokH+7SwNj32FcMKRFhMOTeJB94EsmzPIQt7HW8Vjffd1rAM UWKH+i9R6Nx5d081l2+W5KoJFaoe0gHIwrN6XdW4KEyLcAc8y+45hbLFuvn8IcdD2XCo ehXucyQP64v1lffmK8+hGu5nvX6j5Nwn86IkY0OPyGmK5zf7BSe1hBhjhkz51qEzPIuK zvthW0/OSyfDfIop9I5qTGcDinPZQo0r17tUwz0T/qRrV/yf9VQ4sKBJJsCDyGvWy5vu Wky94T+GyBUmVPGPPzVreEhRdaKtm6/irWLoHyNGieCoD+4QEGejPh/MkOUcbyHNK9iz IshQ== X-Gm-Message-State: AElRT7EvZZKDzsyOYTqU8ILJvVPitzfP2p4Hn7YrAvcoKowZRhCsnwC6 Dm//jZHnYRKOqwGZEyFYH3x+2vxK X-Google-Smtp-Source: AG47ELuX/BBWOcIo1Hb9E8QLabNy7jwHdY9UdiCYYl3iD9n6HCah5+izl62hmzArX0uf9UMxJKhWkQ== X-Received: by 10.28.215.200 with SMTP id o191mr16026825wmg.84.1520491288115; Wed, 07 Mar 2018 22:41:28 -0800 (PST) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Thu, 8 Mar 2018 07:41:26 +0100 Message-Id: <20180308064126.17240-2-pbonzini@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 08 Mar 2018 06:41:29 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Thu, 08 Mar 2018 06:41:29 +0000 (UTC) for IP:'74.125.82.66' DOMAIN:'mail-wm0-f66.google.com' HELO:'mail-wm0-f66.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.469 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 74.125.82.66 mail-wm0-f66.google.com 74.125.82.66 mail-wm0-f66.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] git: show admin link to staff users only 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.30]); Thu, 08 Mar 2018 06:41:34 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail-Owner: <20180308064126.17240-2-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" While superusers automatically get all permissions, they do not have access to the admin---that is reserved to "staff" users. Fix that. Signed-off-by: Paolo Bonzini Reviewed-by: Fam Zheng --- www/templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/templates/base.html b/www/templates/base.html index 225474f..89dabcf 100644 --- a/www/templates/base.html +++ b/www/templates/base.html @@ -74,7 +74,7 @@ crossorigin=3D"anonymous"/> Hi {{ user.username }}
    - {% if request.user.is_superuser %} + {% if request.user.is_staff %}
  • Admin
  • {% endif %}
  • --=20 2.14.3 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel