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
|
# 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue