{% extends 'base.html.twig' %} {% block title %}Profilo | WebArchi{% endblock %} {% block body %} {% include 'partials/navbar.html.twig' %}

Profilo utente

{{ app.user.useridentifier }}

{{ app.user.email ?? 'no email' }}

Ruolo utente: {% if 'ROLE_ADMIN' in app.user.roles %} Amministratore {% elseif 'ROLE_REVISOR' in app.user.roles %} Revisore {% else %} Utente {% endif %}

Permessi

{% if 'ROLE_ADMIN' in app.user.roles %}

Gli amministratori possono creare e modificare utenti in WebArchi, cambiare password e ruoli utente, e disabilitare account.

{% elseif 'ROLE_REVISOR' in app.user.roles %}

Revisors can perform all actions (create, view, edit, delete) on all records and vocabs.

{% elseif 'ROLE_EDITOR' in app.user.roles %}

Editors can view vocabs, view and search all records, create new records with "draft" or "complete" status, edit their own records and those created by other editors; they can only delete their own records, as long as the status is "draft" or "complete".

{% else %}

Readers can view and search records that are either published, excluded or unindexed (draft and complete records cannot be viewed).

{% endif %}
{% for message in app.flashes('error') %}
{{ message }}
{% endfor %} {% for message in app.flashes('notice') %}
{{ message }}
{% endfor %}

Modifica password

{% endblock %}