fix redirect error after sign_in
This commit is contained in:
parent
940f76bf13
commit
9998e00ae3
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ class ApplicationController < ActionController::Base
|
|||
end
|
||||
|
||||
def after_sign_in_path_for(resource)
|
||||
if can? :view, Conference &&
|
||||
if (can? :view, Conference) &&
|
||||
(!session[:return_to] ||
|
||||
session[:return_to] &&
|
||||
session[:return_to] == root_path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue