Merge pull request #4265 from emanuelschuetze/login

Fixed login problem for non admin users.
This commit is contained in:
Emanuel Schütze 2019-02-05 21:26:21 +01:00 committed by GitHub
commit 83d9dbed9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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():

View File

@ -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"],))