实训课程权限

dev_SaaS
daiao 6 years ago
parent 4c58e97d94
commit cfad9f7a75

@ -75,6 +75,13 @@ class ApplicationController < ActionController::Base
end end
end end
# saas平台认证权限
def saas_auth user=nil
logger.info("###################saas_auth:####{params}")
true
end
def user_agent def user_agent
logger.info "HTTP_USER_AGENT #{request.env["HTTP_USER_AGENT"]}" logger.info "HTTP_USER_AGENT #{request.env["HTTP_USER_AGENT"]}"
end end

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

Loading…
Cancel
Save