dev_course
daiao 6 years ago
parent d335f9315e
commit 92bd6ea4b5

@ -260,7 +260,7 @@ class User < ApplicationRecord
# 实训管理员实训合作者、admin
def manager_of_shixun?(shixun)
shixun.shixun_members.exists?(role: [1,2], user_id: id) || admin?
shixun.shixun_members.exists?(role: [1,2], user_id: id) || admin? || business?
end
# 实训管理员

Loading…
Cancel
Save