Project

General

Profile

« Previous | Next » 

Revision 325

Added by stefan over 18 years ago

Fixed ticket #141 - admin now sees all folders in media

View differences:

functions.php
155 155
	global $database, $admin;
156 156
	$home_folders = array();
157 157
	// Only return home folders is this feature is enabled
158
	if(HOME_FOLDERS) {
158
	// and user is not admin
159
	if(HOME_FOLDERS AND ($_SESSION['GROUP_ID']!='1')) {
159 160
		$query_home_folders = $database->query("SELECT home_folder FROM ".TABLE_PREFIX."users WHERE home_folder != '".$admin->get_home_folder()."'");
160 161
		if($query_home_folders->numRows() > 0) {
161 162
			while($folder = $query_home_folders->fetchRow()) {
......
753 754
	}
754 755
}
755 756

  
756
?>
757
?>

Also available in: Unified diff