mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 12:14:12 +00:00 
			
		
		
		
	Created a function to quickly access user name.
This commit is contained in:
		@@ -60,6 +60,16 @@ function userID(){
 | 
			
		||||
    return ComunicWeb.user.userLogin.getUserID();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Returns the full name of a user
 | 
			
		||||
 * 
 | 
			
		||||
 * @param {Object} infos Informations about the user
 | 
			
		||||
 * @return {String} The full name of the user
 | 
			
		||||
 */
 | 
			
		||||
function userFullName(infos){
 | 
			
		||||
    return infos.firstName + " " + infos.lastName;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Return the ID of a user, or its path, depending of what 
 | 
			
		||||
 * is available
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user