mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
adding redirect to selfmodify on /
This commit is contained in:
parent
11c4196959
commit
b5a8e302d1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user