mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Introduced `CHILL_MAIN_COMPOSE_EXPORT` and `CHILL_MAIN_GENERATE_SAVED_EXPORT` roles for managing export creation and execution permissions. Updated access checks, menu routing, and templates to align with the new roles. Added a migration to extend existing permission groups with the `CHILL_MAIN_COMPOSE_EXPORT` role.
15 lines
631 B
Twig
15 lines
631 B
Twig
<ul class="nav nav-pills justify-content-center">
|
|
{% if is_granted('CHILL_MAIN_COMPOSE_EXPORT') %}
|
|
<li class="nav-item">
|
|
<a href="{{ chill_path_forward_return_path('chill_main_export_index') }}" class="nav-link {% if current == 'common' %}active{% endif %}">
|
|
{{ 'Exports list'|trans }}
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
<li class="nav-item">
|
|
<a href="{{ chill_path_forward_return_path('chill_main_export_saved_list_my') }}" class="nav-link {% if current == 'my' %}active{% endif %}">
|
|
{{ 'saved_export.Saved exports'|trans }}
|
|
</a>
|
|
</li>
|
|
</ul>
|