app/controllers/concerns/auth_managment.rb in tramway-user-1.0.2.1 vs app/controllers/concerns/auth_managment.rb in tramway-user-1.0.2.2

- old
+ new

@@ -15,10 +15,10 @@ redirect_to new_session_path unless signed_in? end def authenticate_admin! if signed_in? - redirect_to '/' unless current_user.admin? + redirect_to ::Tramway::User.root_path if !current_user.admin? && request.env['PATH_INFO'] != ::Tramway::User.root_path else redirect_to '/users/session/new' end end