fix(plex): Check Plex server access on user import (#955)

This commit is contained in:
TheCatLady
2021-02-18 10:14:37 -05:00
committed by GitHub
parent bddea7ab24
commit bdb3cb2025
3 changed files with 9 additions and 5 deletions

View File

@@ -333,7 +333,11 @@ router.post(
await userRepository.save(user);
} else {
// Check to make sure it's a real account
if (account.email && account.username) {
if (
account.email &&
account.username &&
(await mainPlexTv.checkUserAccess(Number(account.id)))
) {
const newUser = new User({
plexUsername: account.username,
email: account.email,