You are here

isAdmin

isAdmin(person) determines if the specified user has Administrator authority.

Parameters

person
A node representing the user to check.

Returns

Returns true if the specified user is an Administrator authority.

Example

var userName = "abeecher";

var user = people.getPerson(userName);

if(user){
    model.isAdmin = people.isAdmin(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.