root/releases/0.1.1b/units/users/function_access_level_sql_where.php

Revision 2, 376 bytes (checked in by sven, 3 years ago)

importing elgg-0.1.1a

Line 
1 <?php
2
3     // Returns an SQL "where" clause containing all the access codes that the user can see
4     
5         $run_result = " access = \"public\" ";
6     
7         if (logged_on) {
8             
9             $run_result .= "or owner = \"" . $_SESSION['userid'] . "\" ";
10             $run_result .= "or access = \"LOGGED_IN\" ";
11             $run_result .= "or access = \"user" . $_SESSION['userid'] . "\" ";
12                         
13         }
14         
15 ?>
Note: See TracBrowser for help on using the browser.