Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

fix: correct permission check in watchlist sync - #4310

Open
fronc wants to merge 1 commit into
sct:developfrom
fronc:fix/watchlist-sync-permission
Open

fix: correct permission check in watchlist sync#4310
fronc wants to merge 1 commit into
sct:developfrom
fronc:fix/watchlist-sync-permission

Conversation

@fronc

@fronc fronc commented Dec 22, 2025

Copy link
Copy Markdown

Summary

Fixes a typo in server/lib/watchlistsync.ts where the permission check incorrectly uses AUTO_APPROVE_TV instead of AUTO_REQUEST_TV.

The Bug

// Line 47 - Current (buggy)
[Permission.AUTO_REQUEST, Permission.AUTO_REQUEST_MOVIE, Permission.AUTO_APPROVE_TV]

// Correct
[Permission.AUTO_REQUEST, Permission.AUTO_REQUEST_MOVIE, Permission.AUTO_REQUEST_TV]

Impact

Users with only AUTO_REQUEST_TV permission are incorrectly skipped during watchlist sync because their TV permission isn't recognized by this check.

Fix

Simple one-line change: AUTO_APPROVE_TVAUTO_REQUEST_TV

Related Issues

Testing

Verified that the permission check now correctly recognizes AUTO_REQUEST_TV in the OR condition.

The watchlist sync permission check incorrectly uses AUTO_APPROVE_TV
instead of AUTO_REQUEST_TV, causing users with only AUTO_REQUEST_TV
permission to be skipped during watchlist synchronization.

Fixes sct#4309
@fallenbagel

Copy link
Copy Markdown
Contributor

Hi 👋🏼

This repo is no longer actively maintained. Could you please transfer this PR over to https://github.com/seerr-team/seerr? (Unless you already have as i can see you said so for another pr).

We’d be happy to review it there 😄

@fronc

fronc commented Feb 9, 2026

Copy link
Copy Markdown
Author

Hi 👋🏼

This repo is no longer actively maintained. Could you please transfer this PR over to https://github.com/seerr-team/seerr? (Unless you already have as i can see you said so for another pr).

We’d be happy to review it there 😄

Yes! I believe it's already incorporated in this PR: seerr-team/seerr#2245

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants