Skip to content
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

fix: Incorrect access display after deleting a group the user belongs to #585

Open
AnnaRomaniuta opened this issue Sep 28, 2024 · 0 comments

Comments

@AnnaRomaniuta
Copy link
Collaborator

Describe your issue

When a user deletes a group in a project where they have permissions, the full list of all projects becomes visible. The expected behavior is that the user should see a "Pending access" page with the message: "You do not have access to any pages for now. Please contact an admin to enable access for you."

Steps to reproduce

  1. Log in as user A (administrator).
  2. Create a new project.
  3. Create new group with permission "Manage Project" and add user B.
  4. Log in as user B pay attention to the visibility of available projects.
  5. Go to the projects page and delete the group in which permission was granted to user B.
  6. Pay attention to the visibility of projects after removing a group with permission.

What was the actual result?

  1. User B can see a list of all projects, which they shouldn't have access to.
  2. Upon attempting to access a project, a 404 error is displayed.
  3. When User A logs in and refreshes the page, User B's permissions are updated correctly and the issue is resolved.

What was the expected result?

  1. User B should not see the projects they do not have access to.
  2. If no permissions are granted, User B should see a message indicating they have no rights to view any projects or details.
  3. When user B deletes a project group with his permission, other tabs are not available in the sidebar and a message appears "Pending access. You do not have access to any pages for now. Please contact an admin to enable access for you."

Put here any screenshots or videos (optional)

2024-09-28.11-51-55.mp4

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

Chrome

Severity

Critical (S2)

@AnnaRomaniuta AnnaRomaniuta moved this to In Progress in bsa-2024-gitfit Sep 28, 2024
@AnnaRomaniuta AnnaRomaniuta moved this from In Progress to Backlog in bsa-2024-gitfit Sep 28, 2024
@AnnaRomaniuta AnnaRomaniuta moved this from Backlog to To Do in bsa-2024-gitfit Sep 28, 2024
@GvoFor GvoFor self-assigned this Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Be Tested
Development

No branches or pull requests

2 participants