Make sure users are authenticated before using /my
This commit is contained in:
parent
a502e2295b
commit
448c9d4e68
1 changed files with 6 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue