modules/orionode/lib/shared/db/sharedProjects.js
function removeUserFromProject(user, project) {
		return sharedProject.findOne({'location': project}).exec()
		.then(function(doc) {
			return sharedProject.findOneAndUpdate({'location': project}, {$pull: {'users': { $in: [user]}} }, {
				safe: true,
				w: 'majority'
			}).exec();
		});
	}
function removeUserFromProject(user, project) {
		return sharedProject.findOne({'location': project}).exec()
		.then(function(doc) {
			return sharedProject.findOneAndUpdate({'location': project}, {$pull: {'users': { $in: [user]}} }, {
				safe: true,
				w: 'majority'
			}).exec();
		});
	}
function removeUserFromProject ( user , project ) { return sharedProject . findOne ( { 'location' : project } ) . exec ( ) . then ( function ( doc ) { return sharedProject . findOneAndUpdate ( { 'location' : project } , { $pull : { 'users' : { $in : [ user ] } } } , { safe : true , w : 'majority' } ) . exec ( ) ; } ) ; }
Remove user from project's user list.
Remove user from project s user list .