Skip to content

Commit d816020

Browse files
committed
修复推荐文章漏洞
1 parent 0d21d68 commit d816020

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/topics_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22
class TopicsController < ApplicationController
33

4-
load_and_authorize_resource :only => [:new,:edit,:create,:update,:destroy,:favorite, :follow, :unfollow, :sugges, :unsuggest]
4+
load_and_authorize_resource :only => [:new,:edit,:create,:update,:destroy,:favorite, :follow, :unfollow, :suggest, :unsuggest]
55

66
before_filter :set_menu_active
77
caches_action :feed, :node_feed, :expires_in => 1.hours
@@ -49,7 +49,7 @@ def recent
4949
set_seo_meta([t("topics.topic_list.recent"),t("menu.topics")].join(" &raquo; "))
5050
render :action => "index"
5151
end
52-
52+
5353
def excellent
5454
@topics = Topic.excellent.recent.fields_for_list.includes(:user).paginate(page: params[:page], per_page: 15, total_entries: 500)
5555
drop_breadcrumb(t("topics.topic_list.excellent"))

0 commit comments

Comments
 (0)