Changed authorize to authorize_user!
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled

This commit is contained in:
2024-08-25 21:26:35 +02:00
parent abe9267893
commit 0919a26686
7 changed files with 8 additions and 11 deletions

View File

@@ -1,6 +1,6 @@
class ApplicationController < ActionController::Base
before_action :set_current_request_details
before_action :authenticate
before_action :authenticate_user!
private
def current_user
@@ -19,7 +19,7 @@ class ApplicationController < ActionController::Base
end
helper_method :user_signed_in?
def authenticate
def authenticate_user!
unless user_signed_in?
redirect_to sign_in_path
end