adding redirect to selfmodify on /

This commit is contained in:
kakwa 2015-06-26 00:03:26 +02:00
parent 11c4196959
commit b5a8e302d1
1 changed files with 4 additions and 0 deletions

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