Skip to content

Test:Get Plan (Ownership Protection) - #177

Merged
ONEONUORA merged 2 commits into
Fracverse:masterfrom
Pvsaint:ownership-protection
Feb 24, 2026
Merged

Test:Get Plan (Ownership Protection)#177
ONEONUORA merged 2 commits into
Fracverse:masterfrom
Pvsaint:ownership-protection

Conversation

@Pvsaint

@Pvsaint Pvsaint commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

Implemented Ownership Protection task for fetching plans.

Summary of changes:

Backend Service: Added PlanService::get_plan_by_id_any_user to fetch plans regardless of owner.
API Handler: Updated the get_plan handler in app.rs to distinguish between 404 Not Found (nonexistent plan) and 403 Forbidden (not the owner).
Integration Tests: Added a new test suite

ownership_protection_tests.rs
which verifies all scenarios, including invalid UUIDs (400) and authorized/unauthorized access.
All tests passed successfully. Please review the detailed
walkthrough
for more information.

closes #112

@ONEONUORA ONEONUORA left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice implementation @Pvsaint

@ONEONUORA
ONEONUORA merged commit 2cf6430 into Fracverse:master Feb 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Backend] Get Plan (Ownership Protection)

2 participants