Repository navigation
Conversation
|
@aplatogg is attempting to deploy a commit to the Flagsmith Team on Vercel. A member of the Team first needs to authorize it. |
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Review completed against the latest diff
Reply to a comment to ask cubic a question or push back. It learns from your replies.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Requires human review: Auto-approval blocked because this review re-detected 3 unresolved issues already reported by Cubic.
Re-trigger cubic
…ng environment/overflow
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
All reported issues were addressed across 4 files (changes from recent commits).
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Auto-approval skipped because this PR is from an external contributor.
Re-trigger cubic
Changes
Handles non-integer / malformed ID inputs (
ValueError,TypeError) infeatures/permissions.pyandprojects/permissions.pyso permission checks returnFalse(or raisePermissionDeniedinIsProjectAdmin) instead of raising an unhandled 500ValueErrorduring ORM lookup orint()conversion:FeaturePermissions.has_permission(api/features/permissions.py:57): Catch(ValueError, TypeError)alongsideProject.DoesNotExistwhen resolvingProject.objects.get(id=project_id)(directly addresses theFLAGSMITH-API-5J6Sentry stack trace in URL/query/data input lacking validation #6809).FeatureStatePermissions.has_permission&EnvironmentFeatureStatePermissions.has_permission: Catch/suppress(ValueError, TypeError)when looking upFeature.objects.get(id=feature_id).ProjectPermissions.has_permission(api/projects/permissions.py:20): Catch(TypeError, ValueError)when parsingint(request.data.get("organisation"))oncreate.IsProjectAdmin._get_project&NestedProjectPermissions.has_permission: Catch(ValueError, TypeError)alongsideProject.DoesNotExist.test_unit_features_permissions.pyandtest_unit_projects_permissions.py.Contributes to #6809