Add auth to some admin endpoints

This commit is contained in:
JonnyWong16 2020-08-05 21:21:19 -07:00
parent dd9513313b
commit ba9acd6e23
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -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")