]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/oauth_clients_controller.rb
Fix new rubocop warnings
[rails.git] / app / controllers / oauth_clients_controller.rb
index eb427e090848408f0a3d743de5f1c7698dc647fe..b925002ec7bed7278e19055c719c52092fec30d8 100644 (file)
@@ -3,7 +3,8 @@ class OauthClientsController < ApplicationController
 
   before_action :authorize_web
   before_action :set_locale
-  before_action :require_user
+
+  authorize_resource :class => ClientApplication
 
   def index
     @client_applications = current_user.client_applications