stores officer booth on sign in

This commit is contained in:
rgarcia
2017-02-14 03:35:12 +01:00
committed by Javi Martín
parent 5835d12694
commit b4499321d3
14 changed files with 218 additions and 20 deletions

View File

@@ -3,7 +3,9 @@ class Users::SessionsController < Devise::SessionsController
private
def after_sign_in_path_for(resource)
if !verifying_via_email? && resource.show_welcome_screen?
if current_user.poll_officer?
new_officing_booth_path
elsif !verifying_via_email? && resource.show_welcome_screen?
welcome_path
else
super