app/helpers/sessions_helper.rb
def logged_in?
      if current_user == nil || current_user.permission == -99
        return false
      else
        return true 
      end 
    end
#return true if user has logged in, otherwise, return false
return true if user has logged in, otherwise, return false
return true if user has logged in otherwise return false
def logged_in?
      if current_user == nil || current_user.permission == -99
        return false
      else
        return true 
      end 
    end
def logged_in? if current_user == nil || current_user . permission == - 99 return false else return true end end
return true if user has logged in, otherwise, return false
return true if user has logged in otherwise return false