[PR #4398] [MERGED] Update pathexists endpoint to check user has access to library #4238

Closed
opened 2026-04-25 00:18:57 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/4398
Author: @advplyr
Created: 6/11/2025
Status: Merged
Merged: 6/11/2025
Merged by: @advplyr

Base: masterHead: pathexists_user_access


📝 Commits (2)

  • aac01d6 Update pathexists endpoint to check user has access to library
  • a6f10ca Update upload endpoint to check user has access to library

📊 Changes

2 files changed (+11 additions, -0 deletions)

View changed files

📝 server/controllers/FileSystemController.js (+5 -0)
📝 server/controllers/MiscController.js (+6 -0)

📄 Description

Brief summary

Continuation of #4393 and #4342 in securing upload endpoints

This updates the /api/filesystem/pathexists and /api/upload endpoints to check the user has access to the library.

Which issue is fixed?

No issue

How have you tested this?

Update users accessible libraries and make direct API requests


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/advplyr/audiobookshelf/pull/4398 **Author:** [@advplyr](https://github.com/advplyr) **Created:** 6/11/2025 **Status:** ✅ Merged **Merged:** 6/11/2025 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `pathexists_user_access` --- ### 📝 Commits (2) - [`aac01d6`](https://github.com/advplyr/audiobookshelf/commit/aac01d6d9a2d1943d88daf5ce90587052dd5208e) Update pathexists endpoint to check user has access to library - [`a6f10ca`](https://github.com/advplyr/audiobookshelf/commit/a6f10ca48e923e4418adbb486881ad3942c8771a) Update upload endpoint to check user has access to library ### 📊 Changes **2 files changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `server/controllers/FileSystemController.js` (+5 -0) 📝 `server/controllers/MiscController.js` (+6 -0) </details> ### 📄 Description <!-- For Work In Progress Pull Requests, please use the Draft PR feature, see https://github.blog/2019-02-14-introducing-draft-pull-requests/ for further details. If you do not follow this template, the PR may be closed without review. Please ensure all checks pass. If you are a new contributor, the workflows will need to be manually approved before they run. --> ## Brief summary Continuation of #4393 and #4342 in securing upload endpoints This updates the `/api/filesystem/pathexists` and `/api/upload` endpoints to check the user has access to the library. ## Which issue is fixed? No issue ## How have you tested this? Update users accessible libraries and make direct API requests --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:18:57 +02:00
adam closed this issue 2026-04-25 00:18:57 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4238