This commit is contained in:
Harry Bomrah 2018-06-23 22:38:46 +08:00
parent 0d8ed8dcaa
commit 0e2d117471
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?
available = (OrbitHelper.current_user.is_admin? rescue false)
{
"session" => available,
"url" => "/" + I18n.locale.to_s + page.url,