|
|
|
@ -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
|
|
|
|
|
|
|
|
|
|
# 实训管理员
|
|
|
|
|