1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-25 18:54:29 +01:00

adding redirect to selfmodify on /

This commit is contained in:
kakwa 2015-06-26 00:03:26 +02:00
parent 11c4196959
commit b5a8e302d1

View File

@ -690,6 +690,10 @@ class LdapCherry(object):
"""
self._check_auth(must_admin=False)
is_admin = self._check_admin()
if is_admin:
raise cherrypy.HTTPRedirect('selfmodify')
else:
raise cherrypy.HTTPRedirect('selfmodify')
return self.temp_index.render(is_admin=is_admin)
@cherrypy.expose