mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 01:48:50 +00:00
Created a function to quickly access user name.
This commit is contained in:
parent
27b10964be
commit
b3a3370f56
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user