From: Tom Hughes Date: Thu, 31 Oct 2013 20:52:43 +0000 (+0000) Subject: Setup OAuth when rendering site#index from site#edit X-Git-Tag: live~4688 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/559a822f59f54f74e9117882e9576ed4ad2c973f Setup OAuth when rendering site#index from site#edit --- diff --git a/app/controllers/site_controller.rb b/app/controllers/site_controller.rb index 280f39fd8..cea37fbf3 100644 --- a/app/controllers/site_controller.rb +++ b/app/controllers/site_controller.rb @@ -39,6 +39,7 @@ class SiteController < ApplicationController editor = preferred_editor if editor == "remote" + require_oauth render :action => :index return end