{# Copyright (C) 2023 TU Wien. Invenio Theme TUW is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- set rec = record.id|resolve_record -%} {%- set uploader = rec|resolve_user_owner -%} {%- set current_user_owns_record = current_user and current_user.id == uploader.id -%}