Add auth to some admin endpoints
This commit is contained in:
@@ -4341,7 +4341,7 @@ class WebInterface(object):
|
|||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
@cherrypy.tools.json_out()
|
@cherrypy.tools.json_out()
|
||||||
@requireAuth()
|
@requireAuth(member_of("admin"))
|
||||||
@addtoapi('notify_recently_added')
|
@addtoapi('notify_recently_added')
|
||||||
def send_manual_on_created(self, notifier_id='', rating_key='', **kwargs):
|
def send_manual_on_created(self, notifier_id='', rating_key='', **kwargs):
|
||||||
""" Send a recently added notification using Tautulli.
|
""" Send a recently added notification using Tautulli.
|
||||||
@@ -6042,12 +6042,6 @@ class WebInterface(object):
|
|||||||
whois_info = helpers.whois_lookup(ip_address)
|
whois_info = helpers.whois_lookup(ip_address)
|
||||||
return whois_info
|
return whois_info
|
||||||
|
|
||||||
@cherrypy.expose
|
|
||||||
@cherrypy.tools.json_out()
|
|
||||||
@requireAuth()
|
|
||||||
def get_plexpy_url(self, **kwargs):
|
|
||||||
return helpers.get_plexpy_url()
|
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
@cherrypy.tools.json_out()
|
@cherrypy.tools.json_out()
|
||||||
@requireAuth(member_of("admin"))
|
@requireAuth(member_of("admin"))
|
||||||
@@ -6339,7 +6333,7 @@ class WebInterface(object):
|
|||||||
return "Failed to retrieve newsletter: missing newsletter_id parameter"
|
return "Failed to retrieve newsletter: missing newsletter_id parameter"
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
@requireAuth()
|
@requireAuth(member_of("admin"))
|
||||||
def support(self, **kwargs):
|
def support(self, **kwargs):
|
||||||
return serve_template(templatename="support.html", title="Support")
|
return serve_template(templatename="support.html", title="Support")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user