{#This file is part of ExamSys
ExamSys is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ExamSys is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ExamSys. If not, see .
#}
{#
This template is for displaying the user details Roles tab to users who cannot edit them.
author Neill Magill
copyright 2020 onwards The University of Nottingham
Required variables -
data.rolelist - Rolelist generated by Role::listByGrouping()
data.userroles - The roles the user has.
Required localised strings -
none
#}
{% for grouping, roles in data.rolelist %}
{% for id, role in roles %}
{% if attribute(data.userroles, role.id) %}
- {{role.localName}}
{% endif %}
{% endfor %}
{% endfor %}