X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/14936150ac8ab5cb4e8347b772b2c966f2add43f..a4a316354d6daed8b1f6ddb84885d1edcc86e963:/app/controllers/oauth_clients_controller.rb diff --git a/app/controllers/oauth_clients_controller.rb b/app/controllers/oauth_clients_controller.rb index 44dacde6d..42b0921f1 100644 --- a/app/controllers/oauth_clients_controller.rb +++ b/app/controllers/oauth_clients_controller.rb @@ -19,7 +19,12 @@ class OauthClientsController < ApplicationController end def new - @client_application = ClientApplication.new + if Settings.oauth_10_registration + @client_application = ClientApplication.new + else + flash[:error] = t ".disabled" + redirect_to :action => "index" + end end def edit