提交 8db4628b 编写于 作者: R Robert Speicher

Rescue from `RecordNotFound` in RedactorFilter

上级 1ec68ea9
......@@ -35,12 +35,16 @@ module Gitlab
group = Group.find(id)
group && can?(:read_group, group)
rescue ActiveRecord::RecordNotFound
false
end
def user_can_reference_project?(id)
project = Project.find(id)
project && can?(:read_project, project)
rescue ActiveRecord::RecordNotFound
false
end
def user_can_reference_user?(id)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册