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: ProjectRepository.getPersonalProjectForUser[OrFail] not taking the type or the role of the user to the project into account #8676

Merged

Conversation

despairblue
Copy link
Contributor

Summary

Before ProjectRepository.getPersonalProjectForUser did not take into account the type of the project or the user's role in the project and thus may return team or public projects.

Related tickets and issues

none

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.

    A bug is not considered fixed, unless a test is added to prevent it from happening again.
    A feature is not complete without tests.

It was not taking the type of the project and the role the user has to the project into account.
@despairblue despairblue force-pushed the fix-project-repo-get-personal-project-for-user branch from a278f59 to a41aba2 Compare February 20, 2024 11:37
Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Feb 20, 2024

1 flaky test on run #4149 ↗︎

0 339 12 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 despairblue 🗃️ e2e/*
Project: n8n Commit: a41aba2311
Status: Passed Duration: 03:29 💡
Started: Feb 20, 2024 11:50 AM Ended: Feb 20, 2024 11:53 AM
Flakiness  cypress/e2e/5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Test Replay Screenshots Video

Review all test suite changes for PR #8676 ↗︎

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Feb 20, 2024
@despairblue despairblue merged commit 655ada8 into feature/rbac Feb 20, 2024
32 checks passed
@despairblue despairblue deleted the fix-project-repo-get-personal-project-for-user branch February 20, 2024 12:34
cstuncsik pushed a commit that referenced this pull request Feb 21, 2024
…he type or the role of the user to the project into account (#8676)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants