Skip to content

Commit

Permalink
home: authenticate before action in controller
Browse files Browse the repository at this point in the history
  • Loading branch information
JeSuisUnCaillou authored and freesteph committed Nov 3, 2023
1 parent 6cd5e77 commit 50ab033
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/controllers/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

class HomeController < ApplicationController
layout "maintenance", only: :maintenance
before_action :authenticate_user!, only: %i[home welcome]

def index
(redirect_to home_path and return) if user_signed_in?
Expand Down

0 comments on commit 50ab033

Please sign in to comment.