Skip to content

Add hooks to delete users in user-related plugin tables #1767

@ywarnier

Description

@ywarnier

Current behavior / Resultado actual / Résultat actuel

At the moment, when the BigBlueButton conference plugin is enabled and we delete a user that was previously in a meeting, a FOREIGN KEY database error is avoided through this patch: 73c79d2#diff-54a0e60306c5293cc3e5e0579ea80b89R723

Expected behavior / Resultado esperado / Résultat attendu

This prevents the proper, independent, development of a plugin, as each plugin would need its own patch in the core. Instead, use the hook mechanism (already exists for user creation) to make sure the user record is deleted from the plugin table.

Steps to reproduce / Pasos para reproducir / Étapes pour reproduire

Install the BBB plugin
Open a conference
Join with a user you will later delete
As admin, delete the corresponding user
(actually, to reproduce an issue this should be done with any plugin creating a foreign key on the users table)

Chamilo Version / Versión de Chamilo / Version de Chamilo

1.11.4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions