diff --git a/app/controllers/ec_years_controller.rb b/app/controllers/ec_years_controller.rb index ccced057..536359e8 100644 --- a/app/controllers/ec_years_controller.rb +++ b/app/controllers/ec_years_controller.rb @@ -31,15 +31,11 @@ class EcYearsController < ApplicationController end @status = 1 end - logger.info("1387308227") - @major_manager = User.current.admin? || - @major_school.school.ec_school_users.pluck(:user_id).include?(User.current.id) || - @major_school.ec_major_school_users.pluck(:user_id).include?(User.current.id) + @major_manager = true @btn_text = @major_school.template_major && User.current.admin? ? "立即配置" : (!@major_school.template_major && @major_manager ? "立即配置" : "查看") @years = @major_school.ec_years @years = paginateHelper @years, 10 - logger.info("1370740521") respond_to do |format| format.js end