Merge remote-tracking branch 'upstream/pull/5543'

This commit is contained in:
Tom Hughes 2025-01-24 15:00:25 +00:00
commit 959bc5562a
2 changed files with 6 additions and 6 deletions

View file

@ -170,4 +170,10 @@ class ApiController < ApplicationController
raise OSM::APIRateLimitExceeded if new_changes > max_changes
end
def scope_enabled?(scope)
doorkeeper_token&.includes_scope?(scope)
end
helper_method :scope_enabled?
end

View file

@ -351,10 +351,4 @@ class ApplicationController < ActionController::Base
referer&.to_s
end
def scope_enabled?(scope)
doorkeeper_token&.includes_scope?(scope)
end
helper_method :scope_enabled?
end