From 1d524389c6fc80611875f9741ec0f2c54bf7420a Mon Sep 17 00:00:00 2001
From: Xavier Frankline <xf.xavierfrank@gmail.com>
Date: Fri, 19 Apr 2024 14:39:24 +0300
Subject: [PATCH] fix reset password

---
 ckanext/openafrica/assets/css/openafrica_theme.css | 1 +
 ckanext/openafrica/templates/header.html           | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/ckanext/openafrica/assets/css/openafrica_theme.css b/ckanext/openafrica/assets/css/openafrica_theme.css
index 8b2f85b..0516968 100644
--- a/ckanext/openafrica/assets/css/openafrica_theme.css
+++ b/ckanext/openafrica/assets/css/openafrica_theme.css
@@ -1281,6 +1281,7 @@ label {
 }
 .wrapper:before {
   width: 19%;
+  display: none;
 }
 
 .navbar .nav > li > a {
diff --git a/ckanext/openafrica/templates/header.html b/ckanext/openafrica/templates/header.html
index 8f9ce84..aa92402 100644
--- a/ckanext/openafrica/templates/header.html
+++ b/ckanext/openafrica/templates/header.html
@@ -32,7 +32,7 @@
           <li><a href="/group">Groups</a></li>
           <li><a href="/about">About</a></li>
           {% if h.is_plugin_enabled('datarequests') %}
-            {% if g.user %}
+            {% if current_user.is_authenticated %}
             <li><a href="/datarequest">{{_('Data Requests')}}</a></li>
             {% else %}
             <li><a href="/user/login?came_from=/datarequest">{{_('Data Requests')}}</a></li>