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;
}

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.