The
User object provides read only information about
the current user. The User object is a prototype object and so cannot be instantiated. There is one User object
per request.
Properties
email |
The user's email address. Read only. For anonymous users, the value of this property is undefined. |
name |
The user's name. Read only. For anonymous users the value of this property is the string "Anonymous User". |
|
Prototype Methods
hasPermission |
Checks to see if the current user has permission to perform a specified task, such as browse files, read records, etc.
|
isInGroup |
Checks to see if the current user is in a specified group.
|
isLoggedOn |
Checks to see if the user is currently logged on. |
isAdmin |
Checks to see if the user is either an Administrator or Owner. |
mustChangePassword |
Checks to see if the user must change his password |
mustVerifyEmail |
Checks to see if the user must verify email sent to him or her. |
|
|