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:
|
if request.user.is_authenticated:
|
||||||
return view_func(request, *args, **kwargs)
|
return view_func(request, *args, **kwargs)
|
||||||
else:
|
else:
|
||||||
return redirect("login")
|
return redirect("authentications:login")
|
||||||
|
|
||||||
return wrapper_func
|
return wrapper_func
|
||||||
|
|
||||||
|
|||||||
@@ -72,13 +72,15 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% get_flatpages '/fachschaft/' as pages %}
|
{% if members %}
|
||||||
{% if pages %}
|
{% get_flatpages '/fachschaft/' as pages %}
|
||||||
<li class="internalLI">
|
{% if pages %}
|
||||||
<a href="{% url 'admin:core_customflatpage_change' pages.first.id %}">
|
<li class="internalLI">
|
||||||
<i class="fa-solid fa-pen-to-square mr-1"></i>Fachschaft-Text bearbeiten
|
<a href="{% url 'admin:core_customflatpage_change' pages.first.id %}">
|
||||||
</a>
|
<i class="fa-solid fa-pen-to-square mr-1"></i>Fachschaft-Text bearbeiten
|
||||||
</li>
|
</a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if member %}
|
{% if member %}
|
||||||
|
|||||||
Reference in New Issue
Block a user