Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use sender id from message object from permitted users #4502

Merged
merged 5 commits into from Sep 21, 2019

Conversation

wochinge
Copy link
Contributor

Proposed changes:

  • ...

Status (please check what you already did):

  • made PR ready for code review
  • added some tests for the functionality
  • updated the documentation
  • updated the changelog
  • reformat files using black (please check Readme for instructions)

@wochinge wochinge force-pushed the interactive-learning-arbitrary-ids branch from 8501f45 to c7adcf9 Compare September 20, 2019 17:15
rasa/core/channels/rasa_chat.py Outdated Show resolved Hide resolved
rasa/core/channels/rasa_chat.py Outdated Show resolved Hide resolved
rasa/core/channels/rasa_chat.py Outdated Show resolved Hide resolved
):
return req.json["conversation_id"]
else:
return jwt_payload["username"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will send the message to the user's own conversation if they choose a conversation_id but don't have the correct permission, rather than giving a 401 as it probably should.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@wochinge wochinge marked this pull request as ready for review September 21, 2019 08:38
@wochinge wochinge force-pushed the interactive-learning-arbitrary-ids branch from 93e0f30 to eafb5d2 Compare September 21, 2019 08:42
@wochinge wochinge changed the base branch from master to 1.3.x September 21, 2019 08:42
@amn41 amn41 merged commit 3476906 into 1.3.x Sep 21, 2019
@tmbo tmbo deleted the interactive-learning-arbitrary-ids branch October 28, 2019 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants