Skip to content

Use the member's userId in removal #6055

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 6, 2021

Conversation

laushinka
Copy link
Contributor

@laushinka laushinka commented Oct 5, 2021

Description

This fixes the bug where when a team is deleted, a member is still able to access a team's soft-deleted resources.
Note: the resources are still available because they are not hard-deleted.

Related Issue(s)

Fixes #6016

How to test

  1. Create a team
  2. Add an owner and a member
  3. Delete the team via /settings
  4. Access the URL of the old team's projects e.g. staging-url/t/some-team/projects

Release Notes

NONE

@AlexTugarev
Copy link
Member

AlexTugarev commented Oct 6, 2021

/werft run

👍 started the job as gitpod-build-laushinka-deleting-a-team-does-6016.4

@AlexTugarev
Copy link
Member

/lgtm

@roboquat
Copy link
Contributor

roboquat commented Oct 6, 2021

LGTM label has been added.

Git tree hash: d2e6617b4a4f67e81dadecf7b5a7fcf2642a4385

@roboquat
Copy link
Contributor

roboquat commented Oct 6, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AlexTugarev

Associated issue: #6016

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roboquat roboquat merged commit fad83ab into main Oct 6, 2021
@roboquat roboquat deleted the laushinka/deleting-a-team-does-6016 branch October 6, 2021 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deleting a team does not remove member access to team pages and resources
3 participants