修改代码风格

dev_course
daiao 6 years ago
parent 6ce1a46d33
commit b004cb2e99

@ -396,7 +396,7 @@ class User < ApplicationRecord
when 0, 1, 3 # 申请发布或者已关闭的实训,只有实训管理员可以访问
manager_of_shixun?(shixun)
when 2
shixun.use_scope == 0 || (manager_of_shixun?(shixun) || shixun.shixun_schools.exists?(school_id: school_id))
shixun.use_scope == 0 || manager_of_shixun?(shixun) || shixun.shixun_schools.exists?(school_id: school_id)
end
end

Loading…
Cancel
Save