Require logged in user if navigate to /welcome

This commit is contained in:
Julian Herrero
2019-03-15 19:53:53 +01:00
parent 8d83e70ef4
commit 511f0be287
2 changed files with 6 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
class WelcomeController < ApplicationController
skip_authorization_check
before_action :set_user_recommendations, only: :index, if: :current_user
before_action :authenticate_user!, only: :welcome
layout "devise", only: [:welcome, :verification]