diamond v2.7.0 (2018-03-07T22:17:16Z)
Dub
Repo
addRole
diamond
authentication
roles
Adds a new role.
Role
addRole
(string name)
Role
addRole
(string name, Role parent)
static if
(
isWeb
)
Role
addRole
(
string
name
,
Role
parent
)
Parameters
name
string
The name of the role.
parent
Role
The parent role.
Return Value
Type:
Role
The role.
Meta
Source
See Implementation
diamond
authentication
roles
classes
Role
functions
addRole
getRole
setDefaultRole
setRole
setRoleFromSession
setSessionRole
properties
hasRoles
static variables
defaultRole
Adds a new role.