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,6 +72,7 @@
|
|||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if members %}
|
||||||
{% get_flatpages '/fachschaft/' as pages %}
|
{% get_flatpages '/fachschaft/' as pages %}
|
||||||
{% if pages %}
|
{% if pages %}
|
||||||
<li class="internalLI">
|
<li class="internalLI">
|
||||||
@@ -80,6 +81,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if member %}
|
{% if member %}
|
||||||
<li class="internalLI">
|
<li class="internalLI">
|
||||||
|
|||||||
Reference in New Issue
Block a user