export function updateRole()

in package/src/rbac.ts [63:69]


export function updateRole(role: IRoleDefinition): IdentityResponse {
    if (roles.has(role.id)) {
        roles.set(role.id, role);
        return { message: "Role updated successfully." };
    }
    return { message: "Role does not exist and cannot be updated." };
}