cartodb-4.42/lib/carto/tracking/validators/user.rb
2024-04-06 05:25:13 +00:00

14 lines
272 B
Ruby

module Carto
module Tracking
module Validators
module User
def check_user_consistent!
unless @format.fetch_record!(:user).id == @reporter.id
raise Carto::UnauthorizedError.new
end
end
end
end
end
end