cartodb/lib/carto/tracking/validators/user.rb

14 lines
272 B
Ruby
Raw Normal View History

2020-06-15 10:58:47 +08:00
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