查看他人的留言动态报500

This commit is contained in:
cxt 2016-09-02 16:42:19 +08:00
parent 2197e9aeda
commit 22e914eec2
1 changed files with 1 additions and 1 deletions

View File

@ -1704,7 +1704,7 @@ class UsersController < ApplicationController
sql = "user_id = #{@user.id} and ((container_type = 'Project' and container_id in #{user_project_ids} and act_type in #{project_types}) or (container_type = 'Course' and container_id in #{user_course_ids} and act_type in #{course_types}))" sql = "user_id = #{@user.id} and ((container_type = 'Project' and container_id in #{user_project_ids} and act_type in #{project_types}) or (container_type = 'Course' and container_id in #{user_course_ids} and act_type in #{course_types}))"
end end
if User.current != @user if User.current != @user
sql += "and user_id = #{@user.id}" sql += " and user_id = #{@user.id}"
end end
else else
if User.current != @user if User.current != @user