if(user_logged()){
echo "this";
} else {
echo "that";
}
echo "this";
} else {
echo "that";
}
if(ow::getUser()->isAuthenticated() )
{
echo "logged in";
}
however we just do it it this way at the top of the file
if( !ow::getUser()->isAuthenticated() )
{
return;
}