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
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