Skip to content

Commit

Permalink
Plugin's name is now refinery_pages
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed Jul 28, 2010
1 parent de4fc09 commit 0916e9b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vendor/plugins/pages/app/controllers/pages_controller.rb
Expand Up @@ -29,7 +29,9 @@ def show
Page.find(params[:id], :include => [:parts, :slugs])
end

if @page.try(:live?) or (logged_in? and current_user.authorized_plugins.include?("Pages"))
if @page.try(:live?) or
(refinery_user? and
current_user.authorized_plugins.include?("refinery_pages"))
# if the admin wants this to be a "placeholder" page which goes to its first child, go to that instead.
if @page.skip_to_first_child
first_live_child = @page.children.find_by_draft(false, :order => "position ASC")
Expand Down

0 comments on commit 0916e9b

Please sign in to comment.