Merge branch 'master' of https://git.fet.at/bofh/fet2020
This commit is contained in:
@@ -16,7 +16,7 @@ def authenticated_user(view_func):
|
||||
if request.user.is_authenticated:
|
||||
return view_func(request, *args, **kwargs)
|
||||
else:
|
||||
return redirect("login")
|
||||
return redirect("authentications:login")
|
||||
|
||||
return wrapper_func
|
||||
|
||||
|
||||
@@ -72,13 +72,15 @@
|
||||
</li>
|
||||
{% endif %}
|
||||
|
||||
{% get_flatpages '/fachschaft/' as pages %}
|
||||
{% if pages %}
|
||||
<li class="internalLI">
|
||||
<a href="{% url 'admin:core_customflatpage_change' pages.first.id %}">
|
||||
<i class="fa-solid fa-pen-to-square mr-1"></i>Fachschaft-Text bearbeiten
|
||||
</a>
|
||||
</li>
|
||||
{% if members %}
|
||||
{% get_flatpages '/fachschaft/' as pages %}
|
||||
{% if pages %}
|
||||
<li class="internalLI">
|
||||
<a href="{% url 'admin:core_customflatpage_change' pages.first.id %}">
|
||||
<i class="fa-solid fa-pen-to-square mr-1"></i>Fachschaft-Text bearbeiten
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if member %}
|
||||
|
||||
Reference in New Issue
Block a user