trace.visible = false
trace.save
flash[:notice] = t "trace.delete.scheduled_for_deletion"
- if current_user.administrator? || current_user.moderator?
- redirect_to :action => :list, :display_name => trace.user.display_name
- else
- redirect_to :action => :list, :display_name => current_user.display_name
- end
+ redirect_to :action => :list, :display_name => trace.user.display_name
end
rescue ActiveRecord::RecordNotFound
head :not_found