*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit 8504c2a7 authored by Moser, Maximilian's avatar Moser, Maximilian
Browse files

Fix potential null pointer exception in request detail page

* apparently, the `record` can be unset sometimes
parent 835bafea
No related branches found
No related tags found
1 merge request!168Provide theme assets for Invenio-Curations
......@@ -13,7 +13,7 @@
{%- extends "invenio_requests/details/index.html" %}
{%- set is_curator = current_user.has_role(config["CURATIONS_MODERATION_ROLE"]) %}
{%- set is_uploader = current_user.id|string == record.parent.access.owned_by.user|string %}
{%- set is_uploader = record and current_user.id|string == record.parent.access.owned_by.user|string %}
{%- set active_dashboard_menu_item = "curation-overview" if is_curator else "requests" %}
{%- block request_header %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment