mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-10-18 21:06:41 +02:00
Update translations
This commit is contained in:
@@ -71,7 +71,7 @@ class UserDetailView(LoginRequiredMixin, DetailView):
|
||||
"""
|
||||
An administrator can log in through this page as someone else, and act as this other person.
|
||||
"""
|
||||
if "view_as" in request.POST and self.request.admin:
|
||||
if "view_as" in request.POST and self.request.user.admin:
|
||||
session = request.session
|
||||
session["admin"] = request.user.pk
|
||||
obj = self.get_object()
|
||||
|
Reference in New Issue
Block a user