code: def check_user_can_send_comments(user_info, recid):
      
      # First can we find an authorization for this case, action + collection
      record_primary_collection = guess_primary_collection_of_a_record(recid)
      return acc_authorize_action(
          user_info,
          'sendcomment',
          authorized_if_no_roles=True,
          collection=record_primary_collection)
docs: Check if the user is authorized to comment the given
      recid. This function does not check that user can view the record
      or view the comments
  
      Returns the same type as acc_authorize_action