forked from Gitlink/forgeplus
Compare commits
2 Commits
76545cf72f
...
974213ff59
Author | SHA1 | Date |
---|---|---|
|
974213ff59 | |
![]() |
b52aa0633e |
|
@ -30,9 +30,10 @@ class Admins::OrganizationsController < Admins::BaseController
|
|||
end
|
||||
|
||||
def destroy
|
||||
data_bank = @org.attributes.to_json
|
||||
@org.destroy!
|
||||
Admins::DeleteOrganizationService.call(@org.login)
|
||||
UserAction.create(action_id: @org.id, action_type: "DestroyOrganization", user_id: current_user.id, :ip => request.remote_ip, data_bank: @org.attributes.to_json)
|
||||
UserAction.create(action_id: @org.id, action_type: "DestroyOrganization", user_id: current_user.id, :ip => request.remote_ip, data_bank: data_bank)
|
||||
render_delete_success
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue