From 0d7d9e810251cf40dfac7ebe4ae529e7d81b2cb3 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Mon, 14 Oct 2019 14:43:10 +0100 Subject: Wiki: Hide breadcrumbs bar if the user can't edit --- pydis_site/templates/wiki/includes/breadcrumbs.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pydis_site/templates/wiki/includes') diff --git a/pydis_site/templates/wiki/includes/breadcrumbs.html b/pydis_site/templates/wiki/includes/breadcrumbs.html index a2359f39..47da9bc2 100644 --- a/pydis_site/templates/wiki/includes/breadcrumbs.html +++ b/pydis_site/templates/wiki/includes/breadcrumbs.html @@ -1,4 +1,6 @@ -{% if urlpath and article and not user.is_anonymous %} +{% load wiki_tags %} + +{% if urlpath and article and article|can_write:user %}