dev_hs
cxt 5 years ago
parent ea317cd7c1
commit 9e13ffd316

@ -568,7 +568,7 @@ class ApplicationController < ActionController::Base
end
def strf_date(date)
date.blank? ? '' : Time.parse(date).strftime("%Y-%m-%d")
date.blank? ? '' : date.to_date.strftime("%Y-%m-%d")
end
def logger_error(error)

@ -26,7 +26,7 @@ class CoursesController < ApplicationController
:base_info, :get_historical_courses, :create_group_by_importing_file,
:attahcment_category_list,:export_member_scores_excel, :duplicate_course,
:switch_to_teacher, :switch_to_assistant, :switch_to_student, :exit_course,
:informs, :update_informs, :online_learning, :update_task_position, :tasks_list]
:informs, :update_informs, :online_learning, :update_task_position, :tasks_list, :join_excellent_course]
before_action :user_course_identity, except: [:join_excellent_course, :index, :create, :new, :apply_to_join_course,
:search_course_list, :get_historical_course_students, :mine, :search_slim]
before_action :teacher_allowed, only: [:update, :destroy, :settings, :search_teacher_candidate,

Binary file not shown.
Loading…
Cancel
Save