|
|
@ -266,7 +266,7 @@ class SubjectsController < ApplicationController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def add_subject_members
|
|
|
|
def add_subject_members
|
|
|
|
tip_exception(403, "没权限操作") if !current_user.admin?
|
|
|
|
# tip_exception(403, "没权限操作") if !current_user.admin?
|
|
|
|
tip_exception("user_ids 不能为空!") if params[:user_ids].blank?
|
|
|
|
tip_exception("user_ids 不能为空!") if params[:user_ids].blank?
|
|
|
|
memberships = params[:user_ids]
|
|
|
|
memberships = params[:user_ids]
|
|
|
|
memberships.each do |member|
|
|
|
|
memberships.each do |member|
|
|
|
|