作业从资源库引入作者为别人的资源不能删除bug
This commit is contained in:
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…
Reference in New Issue