]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/user_controller.rb
Add cancancan and the first ability definitions for site_controller
[rails.git] / app / controllers / user_controller.rb
index 63fad8c8378aa7f210ebe90b040badac88a3d0b1..d853d4822979b6ab956a166cd6946c12f5f7e752 100644 (file)
@@ -1,6 +1,8 @@
 class UserController < ApplicationController
   layout "site", :except => [:api_details]
 
+  skip_authorization_check :only => [:login, :logout]
+
   skip_before_action :verify_authenticity_token, :only => [:api_read, :api_details, :api_gpx_files, :auth_success]
   before_action :disable_terms_redirect, :only => [:terms, :save, :logout, :api_details]
   before_action :authorize, :only => [:api_details, :api_gpx_files]