查看他人的留言动态报500
This commit is contained in:
parent
2197e9aeda
commit
22e914eec2
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue