Commit 8db4628b authored by Robert Speicher's avatar Robert Speicher

Rescue from `RecordNotFound` in RedactorFilter

parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment