   apiCall "GET", "/api/user/status", {}
   .done (data) ->
     navbarLayout.links = userNotLoggedIn
-
-    if data["status"] == 0
+    
+    console.log data
+    if data["status"] == 1
       if data.data["teacher"]
         navbarLayout.links = teacherLoggedIn
       else if data.data["logged_in"]
         navbarLayout.links = userLoggedIn
-
+    console.log navbarLayout.links
     $("#navbar-links").html renderNavbarLinks(navbarLayout)
 
   .fail ->


apiOffline =
  News: "/news"

userLoggedIn =
  Problems: "/problems"

    News: "/news"
  Login: "/login"

loadNavbar = (renderNavbarLinks, renderNestedNavbarLinks) ->

  navbarLayout = {
