Skip to content

Commit

Permalink
ui: fix identity in jinja filter
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva authored and zzacharo committed Oct 27, 2023
1 parent a6b7fdc commit 1911d2e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions invenio_communities/views/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 1911d2e

Please sign in to comment.