a TON of bugfixes and new features

This commit is contained in:
jomo
2014-04-28 03:01:33 +02:00
parent a6ba503e73
commit 65f5adf65d
59 changed files with 1023 additions and 970 deletions

View File

@@ -12,7 +12,7 @@ class ForumthreadsController < ApplicationController
def update
if mod? || @thread.author.is?(current_user)
@thread.user_editor = current_user
@thread.attributes = thread_params([:user_editor])
@thread.attributes = (mod? ? thread_params([:sticky, :locked, :forum_id]) : thread_params)
if @thread.save
redirect_to @thread, notice: 'Post has been updated.'
else