|
|
|
@ -3,7 +3,7 @@ class GraduationTopicsController < ApplicationController
|
|
|
|
|
before_action :find_course
|
|
|
|
|
before_action :teacher_allowed, only: [:new, :create, :update, :edit, :destroys, :set_public,
|
|
|
|
|
:refuse_student_topic, :accept_student_topic, :export]
|
|
|
|
|
before_action :find_graduation_topic, except: [:index, :create, :new, :set_public, :destroys, :export]
|
|
|
|
|
before_action :find_graduation_topic, except: [:index, :create, :new, :set_public, :destroys, :export, :add_to_bank]
|
|
|
|
|
before_action :find_course_teachers, only: [:new, :edit]
|
|
|
|
|
before_action :user_course_identity, only: [:index, :show, :show_detail, :show_comment]
|
|
|
|
|
|
|
|
|
|