Skip to content

refactor: remove notePublicOrUserInTeam policy for images - #305

Open
7eliassen wants to merge 1 commit into
mainfrom
refactor/disable-auth-for-images
Open

refactor: remove notePublicOrUserInTeam policy for images#305
7eliassen wants to merge 1 commit into
mainfrom
refactor/disable-auth-for-images

Conversation

@7eliassen

Copy link
Copy Markdown
Contributor

Authorization for access to images stored in notes has been disabled.

Why: This is necessary for the correct operation of ImageTool without complicating the application logic. This is a temporary solution, as the plan is to migrate images to third-party services in the future.

Details: The notePublicOrUserInTeam policy has been disabled for the /upload/:notePublicId/:key endpoint.

@github-actions

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🟢 Lines 85.79% (🎯 80%)
⬇️ -0.02%
9298 / 10837
🟢 Statements 85.79% (🎯 80%)
⬇️ -0.02%
9298 / 10837
🔴 Functions 79.6% (🎯 80%)
🟰 ±0%
285 / 358
🟢 Branches 84.81% (🎯 80%)
⬇️ -0.08%
469 / 553
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/presentation/http/router/upload.ts 81%
⬇️ -0.52%
100%
🟰 ±0%
100%
🟰 ±0%
81%
⬇️ -0.52%
112-138, 167-173
Generated in workflow #932 for commit f2c3229 by the Vitest Coverage Report Action

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.

1 participant