3 // Returns an SQL "where" clause containing all the access codes that the user can see
5 $run_result = " access = 'PUBLIC' ";
9 $run_result = " owner = " . $_SESSION['userid'] . " ";
10 $run_result .= " OR access IN ('PUBLIC', 'LOGGED_IN', 'user" . $_SESSION['userid'] . "') ";
14 $run_result = " access = 'PUBLIC' ";