From 448c9d4e688310b5ce32680b3337d8d45190a87f Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 23 Apr 2017 17:59:37 +0200 Subject: [PATCH] Make sure users are authenticated before using /my --- app/controllers/my_controller.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/controllers/my_controller.rb b/app/controllers/my_controller.rb index c2ad542..09d3ceb 100644 --- a/app/controllers/my_controller.rb +++ b/app/controllers/my_controller.rb @@ -1,7 +1,9 @@ # User profiles and screenshot upload management class MyController < ApplicationController - def index - end + before_action :authenticate_user! + + # def profile + # end def uploads # @current_users_screenshots gets filled in ApplicationController @@ -11,7 +13,7 @@ class MyController < ApplicationController 'screenshots.id' => @current_users_screenshots) end - def welcome - end + # def welcome + # end end