I would like to display a content warning in the render preview, if something is not configured correctly. It should only be visible to logged in content managers thou.
Is there a way to know in the template, if it is a logged in user or a render preview?
as a basic idea:
{% if menu.root_uuid %}
<!-- do amazing things -->
{% elseif is_render_preview() %}
<div class="warning">
The menu can not be displayed, because no root folder is selected.
</div>
{% endif %}