$getAdminPermissionService()
Overview
public any function $getAdminPermissionService()
Returns the Admin permissions service. This can be used to check CMS admin permissions, etc. See CMS permissioning for a full guide.
Example
var adminSystemUserRoles = $getAdminPermissionService().listRoles();