|
|
|
@ -41,7 +41,9 @@ json.top do
|
|
|
|
|
json.old_url @old_domain
|
|
|
|
|
|
|
|
|
|
# 云上实验室管理权限
|
|
|
|
|
json.laboratory_user current_laboratory.laboratory_users.exists?(user_id: @user&.id) || @user&.admin_or_business?
|
|
|
|
|
laboratory_user = current_laboratory.laboratory_users.exists?(user_id: @user&.id) || @user&.admin_or_business?
|
|
|
|
|
json.laboratory_user laboratory_user
|
|
|
|
|
json.laboratory_admin_url laboratory_user ? "/cooperative" : nil
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
json.down do
|
|
|
|
|