From d699c91363804c945510c51e69a4bb53561f19f1 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 29 Jun 2019 17:58:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=AD=A6=E6=A1=88=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/libraries_controller.rb | 2 +- config/routes.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/libraries_controller.rb b/app/controllers/libraries_controller.rb index c124c191..f3559b05 100644 --- a/app/controllers/libraries_controller.rb +++ b/app/controllers/libraries_controller.rb @@ -1,7 +1,7 @@ class LibrariesController < ApplicationController layout 'base_library' - before_filter :require_login + before_filter :require_login, :except => [:index] def index libraries = Library.where(nil) diff --git a/config/routes.rb b/config/routes.rb index ff8d4137..94a5be08 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2659,7 +2659,7 @@ RedmineApp::Application.routes.draw do ## oauth相关 resource :sso, only: [:show, :create] # library - resources :libraries do + resources :libraries, :path => "moop_cases" do get :publish_success, on: :collection end