mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-10 23:42:37 -07:00
Add auth to some admin endpoints
This commit is contained in:
parent
dd9513313b
commit
ba9acd6e23
1 changed files with 2 additions and 8 deletions
|
@ -4341,7 +4341,7 @@ class WebInterface(object):
|
|||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
@requireAuth()
|
||||
@requireAuth(member_of("admin"))
|
||||
@addtoapi('notify_recently_added')
|
||||
def send_manual_on_created(self, notifier_id='', rating_key='', **kwargs):
|
||||
""" Send a recently added notification using Tautulli.
|
||||
|
@ -6042,12 +6042,6 @@ class WebInterface(object):
|
|||
whois_info = helpers.whois_lookup(ip_address)
|
||||
return whois_info
|
||||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
@requireAuth()
|
||||
def get_plexpy_url(self, **kwargs):
|
||||
return helpers.get_plexpy_url()
|
||||
|
||||
@cherrypy.expose
|
||||
@cherrypy.tools.json_out()
|
||||
@requireAuth(member_of("admin"))
|
||||
|
@ -6339,7 +6333,7 @@ class WebInterface(object):
|
|||
return "Failed to retrieve newsletter: missing newsletter_id parameter"
|
||||
|
||||
@cherrypy.expose
|
||||
@requireAuth()
|
||||
@requireAuth(member_of("admin"))
|
||||
def support(self, **kwargs):
|
||||
return serve_template(templatename="support.html", title="Support")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue