/wiki_pages/search: make available to anonymous users.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
class WikiPagesController < ApplicationController
|
class WikiPagesController < ApplicationController
|
||||||
respond_to :html, :xml, :json, :js
|
respond_to :html, :xml, :json, :js
|
||||||
before_filter :member_only, :except => [:index, :show, :show_or_new]
|
before_filter :member_only, :except => [:index, :search, :show, :show_or_new]
|
||||||
before_filter :builder_only, :only => [:destroy]
|
before_filter :builder_only, :only => [:destroy]
|
||||||
before_filter :normalize_search_params, :only => [:index]
|
before_filter :normalize_search_params, :only => [:index]
|
||||||
|
|
||||||
@@ -32,6 +32,9 @@ class WikiPagesController < ApplicationController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def search
|
||||||
|
end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
if params[:id] =~ /\A\d+\Z/
|
if params[:id] =~ /\A\d+\Z/
|
||||||
@wiki_page = WikiPage.find(params[:id])
|
@wiki_page = WikiPage.find(params[:id])
|
||||||
|
|||||||
Reference in New Issue
Block a user