From 1911d2e194bc22dcc251f163f3ab5e79f0c67a54 Mon Sep 17 00:00:00 2001 From: Karolina Przerwa Date: Thu, 26 Oct 2023 19:08:10 +0200 Subject: [PATCH] ui: fix identity in jinja filter --- invenio_communities/views/ui.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/invenio_communities/views/ui.py b/invenio_communities/views/ui.py index 993e0c010..4187bdeac 100644 --- a/invenio_communities/views/ui.py +++ b/invenio_communities/views/ui.py @@ -15,7 +15,6 @@ from flask import Blueprint, current_app, g, render_template, request, url_for from flask_login import current_user from flask_menu import current_menu -from invenio_access.permissions import system_identity from invenio_i18n import lazy_gettext as _ from invenio_pidstore.errors import PIDDeletedError, PIDDoesNotExistError from invenio_records_resources.proxies import current_service_registry @@ -261,7 +260,7 @@ def resolve_community_logo(logo_link, community_id): try: community_service.read_logo( - identity=system_identity, + identity=g.identity, id_=community_id, ) except FileNotFoundError: