app/controllers/article_threads_controller.rb
# extended destination conditions including the case of EXTENDED and ALL receive mode
extended destination conditions including the case of EXTENDED and ALL receive mode
extended destination conditions including the case of EXTENDED and ALL receive mode
def destination_cond(user = @current_user)
    result  = Destination_Condition
    @self_receive_allowed and 
      result += " OR (articles.created_by = #{@current_user.run_id})"  
    (@receive_mode == EXTENDED || @receive_mode == ALL) and 
      result += " OR articles.user_category LIKE CONCAT('%','#{@current_user.category}','%')"
    result
  end
def destination_cond ( user = @current_user ) result = Destination_Condition @self_receive_allowed and result += " OR (articles.created_by = #{@current_user.run_id})" ( @receive_mode == EXTENDED || @receive_mode == ALL ) and result += " OR articles.user_category LIKE CONCAT('%','#{@current_user.category}','%')" result end
extended destination conditions including the case of EXTENDED and ALL receive mode
extended destination conditions including the case of EXTENDED and ALL receive mode
#including sender as a receiver
user
<not_specific>