Find out if the user is an active user of the website.
Returns true if the user’s registration on the context website is active.
This is one of the few methods to get the users’s registration status. The full list is:
user.anonymous() user.notRegistered() user.pending() user.active() user.banned()
Note that for any given user, only one of the above methods returns true.
Note that there is a special case, when the user has been invited, which is not an accessible registration mode. This is to avoid leaking the visitor’s identity without his/her consent.
The sandbox code is executed by its owner, thus by an active of the website.