1, 调整了settting中的成员显示,去掉了冗余的计算逻辑,打开页面速度快多了

2, 管理员身份查看作业列表 ==> true
president
yanxd 11 years ago
parent 8c33cf0afb
commit d2b90b98cc

@ -881,6 +881,7 @@ class BidsController < ApplicationController
def memberAccess
# 是课程,则判断当前用户是否参加了课程
return true if current_user.admin?
return 0 if @bid.courses.first.project_type == Project::ProjectType_project
currentUser = User.current
render_403 unless currentUser.member_of?(@bid.courses.first)

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save