isMember(authorityName) indicates whether a user is
a member of the site.
Parameters
- authorityName
- A string representing the user's authority name.
Returns
Boolean
This is true if the user is a member of the site, or false if otherwise.
Example
The following code snippet uses isMember to test if "admin" is a member of the site "swsdp":
var site = siteService.getSite("swsdp"); if(site){ var authorityName = "admin"; if(site.isMember(authorityName)){ model.authorityName = authorityName; model.role = site.getMembersRole(authorityName); } }