This commit is contained in:
Albert Yi
2018-04-12 14:20:02 -07:00
parent b99600bbbe
commit 5546d9e98b

View File

@@ -108,8 +108,8 @@ private
end
def comment_params(context)
permitted_params = %i[body]
permitted_params += %i[post_id do_not_bump_post] if context == :create
permitted_params = %i[body post_id]
permitted_params += %i[do_not_bump_post] if context == :create
permitted_params += %i[is_deleted] if context == :update
permitted_params += %i[is_sticky] if CurrentUser.is_moderator?