From dcba13eeb972c9f37856730abea896f3b5c95eae Mon Sep 17 00:00:00 2001 From: Ryan Cohen Date: Fri, 19 Aug 2022 14:21:11 +0900 Subject: [PATCH] fix: also check user type for movie sync setting --- .../UserGeneralSettings/index.tsx | 82 ++++++++++--------- 1 file changed, 44 insertions(+), 38 deletions(-) diff --git a/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx b/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx index db963c8ec..d5d3cf9b3 100644 --- a/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx +++ b/src/components/UserProfile/UserSettings/UserGeneralSettings/index.tsx @@ -422,45 +422,51 @@ const UserGeneralSettings = () => { {hasPermission( [Permission.AUTO_REQUEST, Permission.AUTO_REQUEST_MOVIE], { type: 'or' } - ) && ( -
- -
- { - setFieldValue( - 'watchlistSyncMovies', - !values.watchlistSyncMovies - ); - }} - /> + ) && + user?.userType === UserType.PLEX && ( +
+ +
+ { + setFieldValue( + 'watchlistSyncMovies', + !values.watchlistSyncMovies + ); + }} + /> +
-
- )} + )} {hasPermission( [Permission.AUTO_REQUEST, Permission.AUTO_REQUEST_TV], { type: 'or' }