Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VeNJob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tô Ngọc Ánh
VeNJob
Commits
9a91355f
Commit
9a91355f
authored
Sep 10, 2020
by
Tô Ngọc Ánh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix redirect path name if is_admin
parent
55b2b499
Pipeline
#1091
failed with stages
in 0 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
app/controllers/users/sessions_controller.rb
+1
-1
No files found.
app/controllers/users/sessions_controller.rb
View file @
9a91355f
...
...
@@ -26,7 +26,7 @@ class Users::SessionsController < Devise::SessionsController
# end
def
after_sign_in_path_for
(
resource
)
default_path
=
resource
.
admin
?
admin
_applied_jobs_path
:
my_page_path
default_path
=
resource
.
admin
?
search
_applied_jobs_path
:
my_page_path
stored_location
=
stored_location_for
(
resource
)
stored_location
==
root_path
?
default_path
:
stored_location
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment