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