Merge pull request #3506 from consul/officers-redirect
Remove redirect for poll officers
This commit is contained in:
@@ -3,9 +3,7 @@ class Users::SessionsController < Devise::SessionsController
|
|||||||
private
|
private
|
||||||
|
|
||||||
def after_sign_in_path_for(resource)
|
def after_sign_in_path_for(resource)
|
||||||
if current_user.poll_officer?
|
if !verifying_via_email? && resource.show_welcome_screen?
|
||||||
new_officing_booth_path
|
|
||||||
elsif !verifying_via_email? && resource.show_welcome_screen?
|
|
||||||
welcome_path
|
welcome_path
|
||||||
else
|
else
|
||||||
super
|
super
|
||||||
|
|||||||
Reference in New Issue
Block a user