mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 12:25:16 +00:00
Add virtual directory support for sidebar
This commit is contained in:
@ -20,12 +20,26 @@ class User {
|
||||
this.id = info.userID;
|
||||
}
|
||||
|
||||
/**
|
||||
* Backward compatibility
|
||||
*/
|
||||
get userID() {
|
||||
return this.id
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the full name of the user
|
||||
*/
|
||||
get fullName() {
|
||||
return this.firstName + " " + this.lastName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check out whether a given user has a virtual directory or not
|
||||
*/
|
||||
get hasVirtualDirectory() {
|
||||
return this.virtualDirectory;
|
||||
}
|
||||
}
|
||||
|
||||
class UsersList {
|
||||
|
Reference in New Issue
Block a user