Skip to content
Snippets Groups Projects
Verified Commit 714a6511 authored by Philipp S. Sommer's avatar Philipp S. Sommer
Browse files

minor fix for acknowledgement

parent 4ac7aadf
No related branches found
No related tags found
1 merge request!3implement BrokerMessages
......@@ -152,11 +152,10 @@ class TopicConsumer(JsonWebsocketConsumer):
topic = self.dasf_topic
if (
topic is not None
and topic.is_public
or self.user.has_perm("dasf_broker.can_produce", topic)
and topic.is_response_topic
and self.user.has_perm("dasf_broker.can_consume", topic)
):
if topic.is_response_topic:
topic.delete()
topic.delete()
def disconnect(self, close_code):
# Leave room group
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment