small fix for redirection for admin
This commit is contained in:
parent
b5d23f4212
commit
dcd312869b
|
@ -137,6 +137,7 @@ class RecruitmentsController < PseudoSessionController
|
|||
page = Page.where(:module => "pseudo_member").first
|
||||
session = OrbitHelper.request.session
|
||||
available = session[:current_pseudo_user_id].present? && !session[:current_pseudo_user_id].nil? ? "true" : "false"
|
||||
available = current_user.is_admin?
|
||||
{
|
||||
"session" => available,
|
||||
"url" => "/" + I18n.locale.to_s + page.url,
|
||||
|
|
Loading…
Reference in New Issue