This commit is contained in:
Harry Bomrah 2018-06-23 22:43:48 +08:00
parent 0e2d117471
commit bb098ece10
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +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 = (OrbitHelper.current_user.is_admin? rescue false)
available = (OrbitHelper.current_user.is_admin? rescue available)
{
"session" => available,
"url" => "/" + I18n.locale.to_s + page.url,