diff --git a/openslides/application/models.py b/openslides/application/models.py index 4b45a5ed8..6da30fe23 100644 --- a/openslides/application/models.py +++ b/openslides/application/models.py @@ -362,7 +362,7 @@ class Application(models.Model, SlideMixin): is_admin = False if user: try: - user.profile + user = user.profile except Profile.DoesNotExist: is_admin = True except AttributeError: diff --git a/openslides/assignment/templates/assignment/view.html b/openslides/assignment/templates/assignment/view.html index 2614b26d6..cab930676 100644 --- a/openslides/assignment/templates/assignment/view.html +++ b/openslides/assignment/templates/assignment/view.html @@ -54,7 +54,7 @@