Make sure users are authenticated before using /my

This commit is contained in:
Christoph Haas 2017-04-23 17:59:37 +02:00
parent a502e2295b
commit 448c9d4e68

View file

@ -1,7 +1,9 @@
# User profiles and screenshot upload management # User profiles and screenshot upload management
class MyController < ApplicationController class MyController < ApplicationController
def index before_action :authenticate_user!
end
# def profile
# end
def uploads def uploads
# @current_users_screenshots gets filled in ApplicationController # @current_users_screenshots gets filled in ApplicationController
@ -11,7 +13,7 @@ class MyController < ApplicationController
'screenshots.id' => @current_users_screenshots) 'screenshots.id' => @current_users_screenshots)
end end
def welcome # def welcome
end # end
end end