Skip to content
Snippets Groups Projects

Resolve "(Super)User has no person"

Merged Hangzhi Yu requested to merge 237-super-user-has-no-person into master
Files
5
@@ -2,18 +2,28 @@
{% load i18n %}
{% if not user.person and not user.is_anonymous %}
{% if user.person.is_dummy or not user.person and not user.is_anonymous %}
<div class="alert error">
<div>
<i class="material-icons left">error</i>
<p>
{% blocktrans %}
Your user account is not linked to a person. This means you
cannot access any school-related information. Please contact
the managers of AlekSIS at your school.
{% endblocktrans %}
</p>
{% if user.person.is_dummy %}
<p>
{% blocktrans %}
Your administrator account is not linked to any person. Therefore,
a dummy person has been linked to your account.
{% endblocktrans %}
</p>
{% else %}
<p>
{% blocktrans %}
Your user account is not linked to a person. This means you
cannot access any school-related information. Please contact
the managers of AlekSIS at your school.
{% endblocktrans %}
</p>
{% endif %}
</div>
</div>
{% endif %}
Loading