fix cannot download school code in index page when not login.

This commit is contained in:
chiu 2020-03-12 12:48:57 +08:00
parent 8b5f2d9f15
commit b69e0df320
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ class OlympiamanagementsController < ApplicationController
prepend_view_path "app/templates" #for_render_pages prepend_view_path "app/templates" #for_render_pages
layout :get_layout #for_render_pages layout :get_layout #for_render_pages
helper Admin::OlympiamanagementsHelper helper Admin::OlympiamanagementsHelper
before_action :check_login, except: :login before_action :check_login, except: [:login,:download_school_code]
def initialize def initialize
super super
@app_title = "olympiamanagement" @app_title = "olympiamanagement"