function advise_can_access_view

6.x advise.module advise_can_access_view($student_id = "")
4.x advise.module advise_can_access_view()
5.x advise.module advise_can_access_view($student_id = "")

Used by the menu to determine if the user can see the View tab.

File

modules/advise/advise.module, line 259

Code

function advise_can_access_view() {
  global $current_student_id, $user;

  // must be logged in first...
  if (!user_has_permission("access_logged_in_content")) {
    return FALSE;
  }


  if ($current_student_id != "") {
    return TRUE;
  }

  return FALSE;

}