From 722a40779dd30c166b19daf83ae4e1e12e12cd73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Tue, 5 Feb 2019 20:50:22 +0100 Subject: [PATCH] Fixed login problem for non admin users. --- openslides/core/apps.py | 2 +- openslides/mediafiles/apps.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openslides/core/apps.py b/openslides/core/apps.py index c74b82166..909aa0338 100644 --- a/openslides/core/apps.py +++ b/openslides/core/apps.py @@ -185,7 +185,7 @@ def required_users(element: Dict[str, Any]) -> Set[int]: """ Returns all user ids that are displayed as chatters. """ - return set(element["user_id"]) + return set((element["user_id"],)) def startup(): diff --git a/openslides/mediafiles/apps.py b/openslides/mediafiles/apps.py index 7f2a543c7..252dc95af 100644 --- a/openslides/mediafiles/apps.py +++ b/openslides/mediafiles/apps.py @@ -51,4 +51,4 @@ def required_users(element: Dict[str, Any]) -> Set[int]: if request_user can see mediafiles. This function may return an empty set. """ - return set(element["uploader_id"]) + return set((element["uploader_id"],))