Merge branch 'weixin_guange' into develop
This commit is contained in:
commit
0071df9e5b
|
@ -579,13 +579,16 @@ module Mobile
|
||||||
end
|
end
|
||||||
|
|
||||||
#7教辅 9教师 10学生
|
#7教辅 9教师 10学生
|
||||||
if c.tea_id == params[:user_id] || roles_id.length <= 0 || rolesids.include?(10)
|
if c.tea_id == params[:user_id] || roles_id.length <= 0
|
||||||
present :status, -1
|
present :status, -1
|
||||||
present :message,"修改失败"
|
present :message,"修改失败"
|
||||||
else
|
elsif rolesids.include?(3) || rolesids.include?(7) || rolesids.include?(9)
|
||||||
cs = CoursesService.new
|
cs = CoursesService.new
|
||||||
status = cs.modify_user_course_role params,roles_id
|
status = cs.modify_user_course_role params,roles_id
|
||||||
present :status, status
|
present :status, status
|
||||||
|
else
|
||||||
|
present :status, -1
|
||||||
|
present :message,"修改失败"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue