Cast params[:project_id] to FixNum before checking

parent bc4635d2
......@@ -116,7 +116,7 @@ module API
return unless params.key?(:project_id)
return if Gitlab::Geo.current_node&.restricted_project_ids.nil?
unless Gitlab::Geo.current_node.restricted_project_ids.include?(params[:project_id])
unless Gitlab::Geo.current_node.restricted_project_ids.include?(params[:project_id].to_i)
not_found!
end
end
......
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