NZTA\SDLT\Extension\UserRoleExtension
Class UserRoleExtension
Synopsis
class UserRoleExtension
extends DataExtension
{
- // methods
- public boolean getIsSA()
- public boolean getIsCISO()
- public boolean getIsReporter()
- public boolean getIsAdmin()
- public string getRoleName()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Methods
public
- getIsAdmin() — Check if the member is a SilverStripe administrator
- getIsCISO() — Check if the member is a Chief Information Security Officer
- getIsReporter() — Check if the member is a Reporter.
- getIsSA() — Check if the member is a Security Architect
- getRoleName() — Return the role-name for a given user. The returned string is in compound form, but you can use {@link FormField::name_to_label()} to prettify it.