You are here

isGuest

isGuest(person) determines if the specified user has Guest authority.

Parameters

person
A node representing the user to check.

Returns

Returns true if the specified user is logged in as a guest.

Example

var userName = "abeecher";

var user = people.getPerson(userName);

if(user){
    model.isAdmin = people.isGuest(user);
    model.userName = userName;
}