]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/application_controller.rb
Move scope_enabled? to ApiController
[rails.git] / app / controllers / application_controller.rb
index f6006fe5e4ccdc7139a6db14d5e0cf7adf5ee748..40f02300a469f4d6bc14373b4fe79c9d19fa172b 100644 (file)
@@ -354,10 +354,4 @@ class ApplicationController < ActionController::Base
 
     referer&.to_s
   end
-
-  def scope_enabled?(scope)
-    doorkeeper_token&.includes_scope?(scope)
-  end
-
-  helper_method :scope_enabled?
 end