|
|
@ -1,6 +1,7 @@
|
|
|
|
class Weapps::CoursesController < Weapps::BaseController
|
|
|
|
class Weapps::CoursesController < Weapps::BaseController
|
|
|
|
before_action :require_login
|
|
|
|
before_action :require_login
|
|
|
|
before_action :set_course, :user_course_identity, except: [:create]
|
|
|
|
before_action :set_course, :user_course_identity, except: [:create]
|
|
|
|
|
|
|
|
before_action :check_account, only: [:create]
|
|
|
|
before_action :teacher_allowed, only: [:edit, :update]
|
|
|
|
before_action :teacher_allowed, only: [:edit, :update]
|
|
|
|
before_action :teacher_or_admin_allowed, only: [:change_member_roles, :delete_course_teachers]
|
|
|
|
before_action :teacher_or_admin_allowed, only: [:change_member_roles, :delete_course_teachers]
|
|
|
|
|
|
|
|
|
|
|
|