The error message is what you say, it is saying that there is no accesslevel variable in the $_SESSION array. If a user isn't logged in to your site when that function is called you will always get that error. You can prevent that from coming up by doing something more like...
if( !isset($_SESSION['logged_in']) || $_SESSION['accesslevel'] < $requiredAccess){
die("You don't have access to this area. If you should have access, please log in again. <a href='/login/'>Login</a>");
}
...rather than...
if($_SESSION['accesslevel'] < $requiredAccess || $_SESSION['logged_in'] != TRUE){
die("You don't have access to this area. If you should have access, please log in again. <a href='/login/'>Login</a>");
}