fix: remove project version check from grantProjectAdminAccess#5272
Conversation
Co-Authored-By: sheen@infisical.com <sheensantoscapadngan@gmail.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Greptile OverviewGreptile SummaryRemoved the legacy project version check (V1/V2) from the Confidence Score: 5/5
Important Files Changed
|
Context
Organization admins were unable to access or delete legacy V1/V2 projects through the admin console because
grantProjectAdminAccesswas blocking access with the error: "Project is a legacy project and must be upgraded before accessing it through the admin console."This check was originally added to handle encryption key exchange when joining as admin, but that logic has since been removed when encryption keys were stripped off completely. The version check is no longer necessary and was preventing admins from managing legacy projects.
This PR removes the version check, allowing org admins to access all projects regardless of version.
Steps to verify the change
Type
Checklist
type(scope): short description(scope is optional, e.g.,fix: prevent crash on syncorfix(api): handle null response).Link to Devin run
Requested by: @sheensantoscapadngan