mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-08 06:00:51 -07:00
Refresh the users list on guest login to update library permissions
This commit is contained in:
parent
0781018e4e
commit
b6461f4f9e
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,7 @@ from hashing_passwords import check_hash
|
|||
import re
|
||||
|
||||
import plexpy
|
||||
from plexpy import logger
|
||||
from plexpy import logger, plextv
|
||||
from plexpy.database import MonitorDatabase
|
||||
from plexpy.users import Users
|
||||
from plexpy.plextv import PlexTV
|
||||
|
@ -78,6 +78,8 @@ def user_login(username=None, password=None):
|
|||
[user_token, server_token, user_id])
|
||||
|
||||
if result:
|
||||
# Refresh the users list to make sure we have all the correct permissions
|
||||
plextv.refresh_users()
|
||||
# Successful login
|
||||
return True
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue