Fix topic params

This commit is contained in:
Ari Timonen 2020-03-18 22:08:53 +02:00
parent f51af16ca2
commit 2bf16ba800

View file

@ -56,7 +56,7 @@ class TopicsController < ApplicationController
def update
raise AccessError unless @topic.can_update? cuser
if @topic.update_attributes(params[:topic])
if @topic.update_attributes(Topic.params(params, cuser))
flash[:notice] = t(:topics_update)
redirect_to(@topic)
else