Skip to content

Disconnecting users when deleting a document access related to a team #969

@sampaccoud

Description

@sampaccoud

Bug Report

Problematic behavior
When an access is deleted, we make a call to the collaboration server to disconnect the related user:

    CollaborationService().reset_connections(
            str(instance.document.id), str(instance.user.id)
        )

This code is forgetting the fact that an access can be related to a team....

Expected behavior/code
When deleting an access related to a team, all users in the team should be disconnected from the collaboration server.

Note that this bug does not manifest itself in production because we don't make use of team accesses yet.

Possible Solution
Getting the list of users for a team and disconnecting them one by one does not seem to be a good solution and would be fragile.
I would say it is much safer and simpler to disconnect every body and let the users who still have access reconnect...

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbugSomething isn't working

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions