We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2742147 commit bdeaf6bCopy full SHA for bdeaf6b
sogs/routes/users.py
@@ -27,6 +27,10 @@ def extract_rooms_or_global(req, admin=True):
27
to).
28
"""
29
30
+ if not isinstance(req, dict):
31
+ app.logger.warning(f"Invalid request: expected a JSON object body, not {type(req)}")
32
+ abort(http.BAD_REQUEST)
33
+
34
room_tokens, global_ = req.get('rooms'), req.get('global', False)
35
36
if room_tokens and not isinstance(room_tokens, list):
0 commit comments