实践课程的管理者不允许被删除

dev_hjm
daiao 6 years ago
parent 9442fa2705
commit 8c20aeb9e5

@ -14,6 +14,7 @@ json.allow_add_member @user.manager_of_subject?(@subject)
json.members @members do |member|
json.partial! 'subject_member', locals: { user: member.user }
json.allow_delete member.role != 1
end
# 技能标签

Loading…
Cancel
Save