diff --git a/uffd/selfservice/templates/selfservice/self.html b/uffd/selfservice/templates/selfservice/self.html index e3ce9467ef211d38109cea4a0839edf4698f595f..85d7b9033418f8dfbe793aad8e7a665a891737ce 100644 --- a/uffd/selfservice/templates/selfservice/self.html +++ b/uffd/selfservice/templates/selfservice/self.html @@ -41,14 +41,14 @@ <input type="password" class="form-control" id="user-password2" name="password2" placeholder="●●●●●●●●"> </div> <div class="form-group"> - {% if user.roles_recursive|length %} - {% if user.roles_recursive|length == 1 %} + {% if user.roles|length %} + {% if user.roles|length == 1 %} You have this role: {% else %} You currently have these roles: {% endif %} <ul> - {% for role in user.roles_recursive|sort(attribute="name") %} + {% for role in user.roles|sort(attribute="name") %} <li>{{ role.name }}</li> {% endfor %} </ul>