class_docstr: Chat input channel for Rasa Enterprise.
class_docstr_tok: ["Chat","input","channel","for","Rasa","Enterprise","."]
code: def _has_user_permission_to_send_messages_to_conversation(
      jwt_payload: Dict, message: Dict
  ) -> bool:
      user_scopes = jwt_payload.get("scopes", [])
      return INTERACTIVE_LEARNING_PERMISSION in user_scopes or message[
          CONVERSATION_ID_KEY
      ] == jwt_payload.get(JWT_USERNAME_KEY)
  
file_path: rasa/rasa/core/channels/rasa_chat.py
imports: import json
  from typing import Text, Optional, Dict, Any
  import aiohttp
  import logging
  from sanic.exceptions import SanicException
  import jwt
  import jwt.exceptions
  import rasa.core.channels.channel
  from rasa.core.channels.channel import InputChannel
  from rasa.core.channels.rest import RestInput
  from rasa.core.constants import DEFAULT_REQUEST_TIMEOUT
  from sanic.request import Request
label_desc: Use image node_id 4 for calling the RasaChatInput obj's underlying member method code with example usage: obj._has_user_permission_to_send_messages_to_conversation(jwt_payload, message) and returns: unknown