mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 13:41:15 -07:00
Fix checking login permissions
This commit is contained in:
parent
896a37bea9
commit
547dc9ed33
1 changed files with 2 additions and 2 deletions
|
@ -175,11 +175,11 @@ def requireAuth(*conditions):
|
|||
# Define those at will however suits the application.
|
||||
|
||||
def member_of(user_group):
|
||||
return cherrypy.request.login['user_group'] == user_group
|
||||
return lambda: cherrypy.request.login and cherrypy.request.login['user_group'] == user_group
|
||||
|
||||
|
||||
def name_is(user_name):
|
||||
return cherrypy.request.login['user'] == user_name
|
||||
return lambda: cherrypy.request.login and cherrypy.request.login['user'] == user_name
|
||||
|
||||
|
||||
# These might be handy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue