[PR #4164] [MERGED] Fix items count for users with item restricting permissions #4182

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

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/4164
Author: @advplyr
Created: 3/26/2025
Status: Merged
Merged: 3/26/2025
Merged by: @advplyr

Base: masterHead: count_cache_for_userpermissions


📝 Commits (1)

  • 7013600 Fix library items count for users with item restricting permissions #4163

📊 Changes

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

View changed files

📝 server/utils/queries/libraryItemsBookFilters.js (+1 -1)
📝 server/utils/queries/libraryItemsPodcastFilters.js (+1 -1)

📄 Description

Brief summary

See #4163

Users with permissions set that can limit the number of items shown on the library page can show the wrong count due to count caching.

Which issue is fixed?

Fixes #4163

In-depth Description

This fix always skips the count cache for users with a tag restriction or a restriction on explicit content.

It would be too complicated to keep using the count cache for those users in its current implementation.

How have you tested this?

Tested with users with tag restriction and explicit content restriction.


🔄 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/4164 **Author:** [@advplyr](https://github.com/advplyr) **Created:** 3/26/2025 **Status:** ✅ Merged **Merged:** 3/26/2025 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `count_cache_for_userpermissions` --- ### 📝 Commits (1) - [`7013600`](https://github.com/advplyr/audiobookshelf/commit/70136006974330093830f325d2c3b0240c31fdd3) Fix library items count for users with item restricting permissions #4163 ### 📊 Changes **2 files changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `server/utils/queries/libraryItemsBookFilters.js` (+1 -1) 📝 `server/utils/queries/libraryItemsPodcastFilters.js` (+1 -1) </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 See #4163 Users with permissions set that can limit the number of items shown on the library page can show the wrong count due to count caching. ## Which issue is fixed? Fixes #4163 ## In-depth Description This fix always skips the count cache for users with a tag restriction or a restriction on explicit content. It would be too complicated to keep using the count cache for those users in its current implementation. ## How have you tested this? Tested with users with tag restriction and explicit content restriction. --- <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:41 +02:00
adam closed this issue 2026-04-25 00:18:41 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4182