Skip to content

Commit

Permalink
Merge pull request #382 from GabrielInTheWorld/hotfix-additions
Browse files Browse the repository at this point in the history
Hotfix: additions must be a list
  • Loading branch information
jsangmeister committed Jan 7, 2021
2 parents ffe832e + eda0803 commit 1434e64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openslides_backend/services/permission/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def is_allowed(

raise NotAllowed(reason, error_index)

additions = content.get("additions")
additions = content.get("additions") or []
if not isinstance(additions, list):
raise PermissionException("additions must be a list")

Expand Down

0 comments on commit 1434e64

Please sign in to comment.