Skip to content

Commit

Permalink
Merge pull request #2784 from kulturbande/remove-order-before-action-…
Browse files Browse the repository at this point in the history
…callback
  • Loading branch information
tvdeyen authored Mar 9, 2024
2 parents 7a7c607 + 5d82f67 commit 63d5474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/alchemy/admin/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ class PagesController < ResourcesController

helper "alchemy/pages"

before_action :load_resource, except: [:index, :flush, :new, :order, :create, :copy_language_tree, :link]
before_action :load_resource, except: [:index, :flush, :new, :create, :copy_language_tree, :link]

authorize_resource class: Alchemy::Page, except: [:index, :tree]

before_action only: [:index, :tree, :flush, :new, :order, :create, :copy_language_tree] do
before_action only: [:index, :tree, :flush, :new, :create, :copy_language_tree] do
authorize! :index, :alchemy_admin_pages
end

Expand All @@ -21,7 +21,7 @@ class PagesController < ResourcesController
except: [:show]

before_action :set_root_page,
only: [:index, :show, :order]
only: [:index, :show]

before_action :set_preview_mode, only: [:show]

Expand Down

0 comments on commit 63d5474

Please sign in to comment.