作业从资源库引入作者为别人的资源不能删除bug

guange_homework
lizanle 10 years ago
parent baf3d90836
commit 08fd7e125f

@ -507,6 +507,7 @@ class UsersController < ApplicationController
att_copy = atta.copy att_copy = atta.copy
att_copy.container_id = nil att_copy.container_id = nil
att_copy.container_type = nil att_copy.container_type = nil
att_copy.author_id = User.current.id
att_copy.copy_from = atta.id att_copy.copy_from = atta.id
att_copy.save att_copy.save
@attachments << att_copy @attachments << att_copy

Loading…
Cancel
Save