Merge remote-tracking branch 'upstream/pull/5543'
This commit is contained in:
commit
959bc5562a
2 changed files with 6 additions and 6 deletions
|
@ -170,4 +170,10 @@ class ApiController < ApplicationController
|
||||||
|
|
||||||
raise OSM::APIRateLimitExceeded if new_changes > max_changes
|
raise OSM::APIRateLimitExceeded if new_changes > max_changes
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def scope_enabled?(scope)
|
||||||
|
doorkeeper_token&.includes_scope?(scope)
|
||||||
|
end
|
||||||
|
|
||||||
|
helper_method :scope_enabled?
|
||||||
end
|
end
|
||||||
|
|
|
@ -351,10 +351,4 @@ class ApplicationController < ActionController::Base
|
||||||
|
|
||||||
referer&.to_s
|
referer&.to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
def scope_enabled?(scope)
|
|
||||||
doorkeeper_token&.includes_scope?(scope)
|
|
||||||
end
|
|
||||||
|
|
||||||
helper_method :scope_enabled?
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue