mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 08:18:43 -03:30
prevent ws group subscription if not specified in the valid format
This commit is contained in:
@@ -170,11 +170,9 @@ class EventConsumer(AsyncJsonWebsocketConsumer):
|
|||||||
continue
|
continue
|
||||||
new_groups.add(name)
|
new_groups.add(name)
|
||||||
else:
|
else:
|
||||||
if group_name == settings.BROADCAST_WEBSOCKET_GROUP_NAME:
|
await self.send_json({"error": "access denied to channel"})
|
||||||
logger.warn("Non-priveleged client asked to join broadcast group!")
|
logger.error(f"groups must be a list, not {groups}")
|
||||||
return
|
return
|
||||||
|
|
||||||
new_groups.add(group_name)
|
|
||||||
|
|
||||||
old_groups = current_groups - new_groups
|
old_groups = current_groups - new_groups
|
||||||
for group_name in old_groups:
|
for group_name in old_groups:
|
||||||
|
|||||||
Reference in New Issue
Block a user