Velocity Permission Variables

Here are some velocity variables you can use to check permission in the theme such as “portal_normal.vm”

$theme_display.getPermissionChecker().isOmniadmin()
- Returns true if the user is a universal administrator.

$theme_display.getPermissionChecker().isCompanyAdmin()
- Returns true if the user is an administrator of their company.

$theme_display.getPermissionChecker().isCompanyAdmin($theme_display.companyId)
- Returns true if the user is an administrator of the company.

  1. liferaytips posted this

Blog comments powered by Disqus