modules/orionode/lib/shared/db/userProjects.js
function getUserSharedProjects(user) {
		return userProject.findOne({'username': user}, 'sharedProjects')
		.then(function(doc) {
			if (!doc) {
				return undefined;
			}
			var projects = doc.sharedProjects;
			projects = projects.map(function(project) {
				var name = path.win32.basename(project);
				return {'Name': name, 'Location': project};
			});
			return projects;
		});
	}
function getUserSharedProjects(user) {
		return userProject.findOne({'username': user}, 'sharedProjects')
		.then(function(doc) {
			if (!doc) {
				return undefined;
			}
			var projects = doc.sharedProjects;
			projects = projects.map(function(project) {
				var name = path.win32.basename(project);
				return {'Name': name, 'Location': project};
			});
			return projects;
		});
	}
function getUserSharedProjects ( user ) { return userProject . findOne ( { 'username' : user } , 'sharedProjects' ) . then ( function ( doc ) { if ( ! doc ) { return undefined ; } var projects = doc . sharedProjects ; projects = projects . map ( function ( project ) { var name = path . win32 . basename ( project ) ; return { 'Name' : name , 'Location' : project } ; } ) ; return projects ; } ) ; }
returns a list of projects shared to the user.
returns a list of projects shared to the user .