system.kanoa.security.updateRoleFunctions
Description
Inserts or deletes a role function link based on the provided information.Syntax
updateRoleFunctions(roleFunctionInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
roleId | int | ||
functionId | int | ||
enabled | bool |
Code Examples
# Example Usage:
system.kanoa.security.updateRoleFunctions({'roleId': 1, 'functionId': 7, 'enabled': True}, 123)