]> git.openstreetmap.org Git - rails.git/commitdiff
Setup OAuth when rendering site#index from site#edit
authorTom Hughes <tom@compton.nu>
Thu, 31 Oct 2013 20:52:43 +0000 (20:52 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 31 Oct 2013 20:52:43 +0000 (20:52 +0000)
app/controllers/site_controller.rb

index 280f39fd8c32b597b7cbc13094044e5827033d02..cea37fbf36da54ab423293f54e4ff937b4efe358 100644 (file)
@@ -39,6 +39,7 @@ class SiteController < ApplicationController
     editor = preferred_editor
 
     if editor == "remote"
+      require_oauth
       render :action => :index
       return
     end