getRole

Gets a role by its name.

  1. Role getRole(string name)
    static if(isWeb)
    getRole
    (
    string name
    )
  2. Role getRole(HttpClient client)

Parameters

name string

The name of the role.

Return Value

Type: Role

The role if found, defaultRole otherwise.

Meta