$getWebsitePermissionService()

Overview

public any function $getWebsitePermissionService()

Returns the Website permissions service. This can be used to check website user permissions, etc. See Website users and permissioning for a full guide.

Example

var userBenefits = $getWebsitePermissionService().listUserBenefits(
        userId = $getWebsiteLoggedInUserId()
);