实训课程删除权限

dev_partners
jingquan huang 6 years ago
parent a953ebd03b
commit 792fe7c71b

@ -6,6 +6,7 @@ class SubjectsController < ApplicationController
before_filter :require_login, :except => [:show, :index]
before_filter :check_authentication, :except => [:show, :index]
before_filter :find_subject, :except => [:index, :new, :create, :create_subject, :new_subject, :append_to_stage, :send_to_course]
before_filter :require_admin, :only => [:destroy]
include ApplicationHelper
include SubjectsHelper

Loading…
Cancel
Save