Skip to main content

system.kanoa.security.updateRoleFunctions

This function requires KanoaCore module

Description

Inserts or deletes a role function link based on the provided information.

Syntax

updateRoleFunctions(roleFunctionInfo, userId)
  • Parameters
      roleFunctionInfo (Dictionary) - Information about the role function link, including roleId, functionId, and enabled.
      userId (Integer) - User ID.
  • Returns
    None.
  • Code Example

    # Example Usage:
    system.kanoa.security.updateRoleFunctions({'roleId': 1, 'functionId': 7, 'enabled': True}, 123)