sagas/roles
- Source:
Methods
(generator, static) changeRoleStatus(action)
- Description:
Change status of user
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(async, generator, static) getPermissions()
- Description:
Get list of all permissions
- Source:
(generator, static) getRolePermissions(action)
- Description:
Get list of permissions for passed roles
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(async, static) module.exports() → {void}
- Source:
Returns:
- Type
- void
(async, generator, static) removeRole(action)
- Description:
Remove role
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(async, generator, static) rolesInit(action)
- Description:
Get list of roles
- Source:
Properties:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
action |
object |
Properties
|
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(async, generator, static) saveEditRole(action)
- Description:
Edit roles
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
(async, generator, static) saveNewRole(action)
- Description:
Save new role
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
action |
object |
Type Definitions
"getPermissions/response.data"
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
permissions |
Array.<Permission> |
Type:
- object
"rolesInit/response.data"
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
roles |
Array.<Roles> | |
totalPages |
number |
Type:
- object
Permission
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
permissionId |
number | |
name |
string |
Type:
- object
Role
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
description |
string | |
insertionDate |
string | |
insertionUser |
string | |
name |
string | |
roleId |
number | |
status |
string |
Type:
- object