Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsuchal committed Dec 6, 2023
1 parent 32bd116 commit 5a95315
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion app/components/service_worker_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ class ServiceWorkerController < ApplicationController
# TODO make this a one call
skip_before_action :authenticate
skip_after_action :verify_authorized
skip_after_action :verify_policy_scoped
skip_before_action :set_menu_context

def service_worker
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class ApplicationController < ActionController::Base
include Authentication
include Pundit::Authorization
after_action :verify_authorized
after_action :verify_policy_scoped, only: :index
after_action :verify_policy_scoped, only: :index if respond_to?(:index)
before_action :set_menu_context

def pundit_user
Expand Down
1 change: 0 additions & 1 deletion app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
class SessionsController < ApplicationController
skip_before_action :authenticate
skip_after_action :verify_authorized
skip_after_action :verify_policy_scoped
skip_before_action :set_menu_context
layout 'login'

Expand Down

0 comments on commit 5a95315

Please sign in to comment.