mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 21:10:54 +00:00
Fix topic params
This commit is contained in:
parent
f51af16ca2
commit
2bf16ba800
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class TopicsController < ApplicationController
|
||||||
|
|
||||||
def update
|
def update
|
||||||
raise AccessError unless @topic.can_update? cuser
|
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)
|
flash[:notice] = t(:topics_update)
|
||||||
redirect_to(@topic)
|
redirect_to(@topic)
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue