diamond ~master (2020-03-31T19:16:28Z)
Home
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.