small fix for redirection for admin

This commit is contained in:
Harry Bomrah 2018-06-23 22:05:41 +08:00
parent b5d23f4212
commit dcd312869b
1 changed files with 1 additions and 0 deletions

View File

@ -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,